lots of stuffs
This commit is contained in:
parent
9554174f21
commit
422942d6d7
19 changed files with 656 additions and 11 deletions
|
@ -19,8 +19,12 @@ package() {
|
|||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir
|
||||
cp -r ./_install/* $pkgdir
|
||||
chmod 4755 $pkgdir/bin/busybox
|
||||
rm $pkgdir/linuxrc
|
||||
rm $pkgdir/bin/ln
|
||||
rm $pkgdir/bin/uname
|
||||
rm $pkgdir/usr/bin/install
|
||||
rm $pkgdir/usr/bin/lspci
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
48
pkgs/cmake/build.sh
Normal file
48
pkgs/cmake/build.sh
Normal file
|
@ -0,0 +1,48 @@
|
|||
pkgver=3.19.2
|
||||
pkgname=cmake
|
||||
pkgrel=1
|
||||
bad=""
|
||||
ext=""
|
||||
|
||||
fetch() {
|
||||
curl "https://cmake.org/files/v3.19/cmake-3.19.2.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./bootstrap \
|
||||
--prefix=/usr \
|
||||
--mandir=/share/man \
|
||||
--datadir=/share/$pkgname \
|
||||
--docdir=/share/doc/$pkgname \
|
||||
--generator=Ninja \
|
||||
--no-system-libs
|
||||
|
||||
samu
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
DESTDIR=$pkgdir samu install
|
||||
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
rm -r $pkgdir/usr/share/info
|
||||
rm -r $pkgdir/usr/include
|
||||
}
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
40
pkgs/curl/build.sh
Normal file
40
pkgs/curl/build.sh
Normal file
|
@ -0,0 +1,40 @@
|
|||
pkgver=7.74.0
|
||||
pkgname=curl
|
||||
pkgrel=1
|
||||
bad=""
|
||||
ext="doc:dev"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/curl/curl/releases/download/curl-7_74_0/curl-7.74.0.tar.xz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G Ninja ../ \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib
|
||||
samu
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
DESTDIR=$pkgdir samu install
|
||||
rm -r $pkgdir/usr/share
|
||||
rm -r $pkgdir/usr/include
|
||||
rm -r $pkgdir/usr/lib/pkgconfig
|
||||
rm -r $pkgdir/usr/lib/cmake
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
samu
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
38
pkgs/expat/build.sh
Normal file
38
pkgs/expat/build.sh
Normal file
|
@ -0,0 +1,38 @@
|
|||
pkgver=2.2.10
|
||||
pkgname=expat
|
||||
bad=""
|
||||
ext="dev"
|
||||
|
||||
fetch() {
|
||||
pkgver_r = $(echo $pkgver | tr '.' '_')
|
||||
curl -L https://github.com/libexpat/libexpat/releases/download/R_2_2_10/$pkgname-$pkgver.tar.xz -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm $pkgdir/usr/lib/*.a
|
||||
rm $pkgdir/usr/lib/*.la
|
||||
rm -r $pkgdir/usr/include
|
||||
rm -r $pkgdir/usr/lib/pkgconfig
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
32
pkgs/fish/build.sh
Normal file
32
pkgs/fish/build.sh
Normal file
|
@ -0,0 +1,32 @@
|
|||
pkgver=3.1.2
|
||||
pkgname=fish
|
||||
pkgrel=1
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/fish-shell/fish-shell/releases/download/3.1.2/fish-3.1.2.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../../output_tputs_cast.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G Ninja .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_EXE_LINKER_FLAGS=-lterminfo \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr'
|
||||
samu
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
DESTDIR="$pkgdir/" samu install
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
8
pkgs/fish/git_version_gen.patch
Normal file
8
pkgs/fish/git_version_gen.patch
Normal file
|
@ -0,0 +1,8 @@
|
|||
--- git_version_gen.sh.1
|
||||
+++ git_version_gen.sh
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env sh
|
||||
+#!/bin/sh
|
||||
# Originally from the git sources (GIT-VERSION-GEN)
|
||||
# Presumably (C) Junio C Hamano <junkio@cox.net>
|
||||
# Reused under GPL v2.0
|
11
pkgs/fish/output_tputs_cast.patch
Normal file
11
pkgs/fish/output_tputs_cast.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/src/output.cpp
|
||||
+++ b/src/output.cpp
|
||||
@@ -364,7 +364,7 @@
|
||||
scoped_push<outputter_t *> push(&s_tputs_receiver, this);
|
||||
// On some systems, tputs takes a char*, on others a const char*.
|
||||
// Like tparm, we just cast it to unconst, that should work everywhere.
|
||||
- return tputs(const_cast<char *>(str), affcnt, tputs_writer);
|
||||
+ return tputs(const_cast<char *>(str), affcnt, (int (*)(int)) tputs_writer);
|
||||
}
|
||||
|
||||
/// Write a wide character to the outputter. This should only be used when writing characters from
|
46
pkgs/gmake/build.sh
Normal file
46
pkgs/gmake/build.sh
Normal file
|
@ -0,0 +1,46 @@
|
|||
pkgver=4.3
|
||||
pkgname=gmake
|
||||
pkgrel=1
|
||||
bad="gmake"
|
||||
ext="doc:dev"
|
||||
|
||||
fetch() {
|
||||
curl "https://ftp.gnu.org/gnu/make/make-4.3.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
mv make-$pkgver $pkgname-$pkgver
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--program-prefix=g \
|
||||
--disable-nls
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/share
|
||||
rm -r $pkgdir/usr/include
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
rm -r $pkgdir/usr/share/info
|
||||
rm -r $pkgdir/usr/include
|
||||
}
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
35
pkgs/heirloom-doctools/build.sh
Normal file
35
pkgs/heirloom-doctools/build.sh
Normal file
|
@ -0,0 +1,35 @@
|
|||
pkgver=master
|
||||
pkgname=heirloom-doctools
|
||||
pkgrel=1
|
||||
bad="gmake"
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/n-t-roff/heirloom-doctools/archive/master.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
cd $pkgname-$pkgver
|
||||
cp ../../mk.config .
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install ROOT=$pkgdir
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install ROOT=$pkgdir
|
||||
rm -r $pkgdir/usr/lib
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
109
pkgs/heirloom-doctools/mk.config
Normal file
109
pkgs/heirloom-doctools/mk.config
Normal file
|
@ -0,0 +1,109 @@
|
|||
#
|
||||
# A BSD-compatible install command.
|
||||
#
|
||||
INSTALL=install
|
||||
|
||||
#
|
||||
# Packaging prefix.
|
||||
#
|
||||
PREFIX=/usr
|
||||
|
||||
#
|
||||
# Where to place binaries.
|
||||
#
|
||||
BINDIR=$(PREFIX)/bin
|
||||
|
||||
#
|
||||
# Where to place libraries.
|
||||
#
|
||||
LIBDIR=$(PREFIX)/lib
|
||||
|
||||
#
|
||||
# Where to place ASCII charts and the like.
|
||||
#
|
||||
PUBDIR=$(PREFIX)/lib/doctools/pub
|
||||
|
||||
#
|
||||
# Where to place manual pages.
|
||||
#
|
||||
MANDIR=$(PREFIX)/share/man
|
||||
|
||||
#
|
||||
# Where to place the troff macro packages.
|
||||
#
|
||||
MACDIR=$(LIBDIR)/doctools/tmac
|
||||
|
||||
#
|
||||
# Where to place the troff font files.
|
||||
#
|
||||
FNTDIR=$(LIBDIR)/doctools/font
|
||||
|
||||
#
|
||||
# Where to place PostScript helper files.
|
||||
#
|
||||
PSTDIR=$(FNTDIR)/devpost/postscript
|
||||
|
||||
#
|
||||
# Where to place the nroff terminal description files.
|
||||
#
|
||||
TABDIR=$(LIBDIR)/doctools/nterm
|
||||
|
||||
#
|
||||
# Where to place troff hyphenation files.
|
||||
#
|
||||
HYPDIR=$(LIBDIR)/doctools/hyphen
|
||||
|
||||
#
|
||||
# Where to place files belonging to the "refer" utility.
|
||||
#
|
||||
REFDIR=$(LIBDIR)/reftools
|
||||
|
||||
#
|
||||
# Define this if you want troff and nroff to be able to process
|
||||
# locale-specific (8-bit) characters. It requires appropriate support
|
||||
# from the C library, so it does not work e.g. with diet libc.
|
||||
#
|
||||
EUC=-DEUC
|
||||
|
||||
#
|
||||
# Binaries are stripped with this command after installation.
|
||||
#
|
||||
STRIP=strip
|
||||
|
||||
#
|
||||
# The C compiler.
|
||||
#
|
||||
CC=clang
|
||||
|
||||
#
|
||||
# The C++ compiler.
|
||||
#
|
||||
CXX=clang++
|
||||
|
||||
#
|
||||
# Compiler flags.
|
||||
#
|
||||
_CFLAGS=$(CFLAGS) $(_CPPFLAGS) $(__CDBG) $(__CLDBG)
|
||||
|
||||
#
|
||||
# C preprocessor flags.
|
||||
#
|
||||
# Use -D_GNU_SOURCE for Linux with GNU libc.
|
||||
# Use -D_INCLUDE__STDC_A1_SOURCE for HP-UX.
|
||||
#
|
||||
_CPPFLAGS=$(CPPFLAGS) -D_GNU_SOURCE
|
||||
|
||||
#
|
||||
# Linker flags.
|
||||
#
|
||||
_LDFLAGS=$(LDFLAGS) $(__CLDBG)
|
||||
|
||||
#
|
||||
# Additional libraries to link with.
|
||||
#
|
||||
#LIBS=
|
||||
|
||||
#
|
||||
# A Bourne-compatible shell.
|
||||
#
|
||||
SHELL=/bin/sh
|
48
pkgs/libdrm/COPYING
Normal file
48
pkgs/libdrm/COPYING
Normal file
|
@ -0,0 +1,48 @@
|
|||
Copyright 2005 Adam Jackson.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation on the rights to use, copy, modify, merge,
|
||||
publish, distribute, sub license, and/or sell copies of the Software,
|
||||
and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice (including the
|
||||
next paragraph) shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NON-INFRINGEMENT. IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
|
||||
Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
|
||||
All Rights Reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice (including the
|
||||
next paragraph) shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS
|
||||
SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
29
pkgs/libdrm/build.sh
Normal file
29
pkgs/libdrm/build.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
pkgver=2.4.103
|
||||
pkgname=libdrm
|
||||
bad=""
|
||||
ext="dev"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://dri.freedesktop.org/libdrm/libdrm-2.4.103.tar.xz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
meson build -Dintel=false --prefix /usr
|
||||
samu -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
DESTDIR=$pkgdir samu -C build install
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
DESTDIR=$pkgdir samu -C build install
|
||||
}
|
||||
|
||||
license() {
|
||||
cat ../COPYING
|
||||
}
|
30
pkgs/libffi/build.sh
Normal file
30
pkgs/libffi/build.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
pkgver=3.3
|
||||
pkgname=libffi
|
||||
bad="gmake"
|
||||
ext="dev"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/usr
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
41
pkgs/libressl/build.sh
Normal file
41
pkgs/libressl/build.sh
Normal file
|
@ -0,0 +1,41 @@
|
|||
pkgver=3.3.1
|
||||
pkgname=libressl
|
||||
pkgrel=1
|
||||
bad=""
|
||||
ext="doc:dev"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.3.1.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G Ninja ../ \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DOPENSSLDIR=/etc/ssl
|
||||
samu
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
cd build
|
||||
DESTDIR=$pkgdir samu install
|
||||
rm -r $pkgdir/usr/share
|
||||
rm -r $pkgdir/usr/include
|
||||
rm -r $pkgdir/usr/lib/pkgconfig
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
samu
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
30
pkgs/libxml2/build.sh
Normal file
30
pkgs/libxml2/build.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
pkgver=2.9.10
|
||||
pkgname=libxml2
|
||||
bad=""
|
||||
ext="dev"
|
||||
|
||||
fetch() {
|
||||
curl "ftp://xmlsoft.org/libxml2/libxml2-2.9.10.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/usr --without-python
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat Copyright
|
||||
}
|
29
pkgs/meson/build.sh
Normal file
29
pkgs/meson/build.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
pkgver=0.55.0
|
||||
pkgname=meson
|
||||
deps=python
|
||||
bad=""
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl -L "https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
python setup.py install --prefix=/usr --root=$pkgdir
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
echo $pkgdir
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
pkgver=1.2.1
|
||||
pkgver=1.2.2
|
||||
pkgname=musl
|
||||
bad="gmake"
|
||||
ext="dev"
|
||||
|
@ -11,7 +11,7 @@ fetch() {
|
|||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/ \
|
||||
--prefix=/usr \
|
||||
--enable-wrapper=no
|
||||
gmake
|
||||
}
|
||||
|
@ -19,21 +19,17 @@ build() {
|
|||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/include
|
||||
rm $pkgdir/lib/*.a
|
||||
rm $pkgdir/lib/*.o
|
||||
mv $pkgdir/usr/lib/libc.so $pkgdir/lib
|
||||
ln -sr $pkgdir/lib/libc.so $pkgdir/lib/ld-musl-x86_64.so.1
|
||||
rm -r $pkgdir/usr
|
||||
install -d $pkgdir/usr/bin
|
||||
cd $pkgdir/usr/bin
|
||||
ln -s ../../lib/ld-musl*.so.? ldd
|
||||
ln -sr $pkgdir/lib/ld-musl*.so? $pkgdir/usr/bin/ldd
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
gmake install DESTDIR=$pkgdir
|
||||
rm $pkgdir/lib/*.so
|
||||
rm $pkgdir/lib/*.so.?
|
||||
install -d $pkgdir/usr/
|
||||
mv $pkgdir/* $pkgdir/usr/
|
||||
rm $pkgdir/usr/lib/*.so
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
35
pkgs/xkbcommon/build.sh
Normal file
35
pkgs/xkbcommon/build.sh
Normal file
|
@ -0,0 +1,35 @@
|
|||
pkgver=1.2.1
|
||||
pkgname=musl
|
||||
bad="gmake"
|
||||
ext="dev"
|
||||
|
||||
fetch() {
|
||||
curl "https://musl.libc.org/releases/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/ --enable-wrapper=no
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/include
|
||||
rm $pkgdir/lib/*.a
|
||||
rm $pkgdir/lib/*.o
|
||||
}
|
||||
|
||||
package_dev() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm $pkgdir/lib/*.so
|
||||
rm $pkgdir/lib/*.so.?
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYRIGHT
|
||||
}
|
36
pkgs/zlib/build.sh
Normal file
36
pkgs/zlib/build.sh
Normal file
|
@ -0,0 +1,36 @@
|
|||
pkgver=1.2.11
|
||||
pkgname=zlib
|
||||
bad=""
|
||||
ext="dev"
|
||||
|
||||
fetch() {
|
||||
curl https://zlib.net/zlib-1.2.11.tar.xz -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm $pkgdir/usr/lib/*.a
|
||||
rm -r $pkgdir/usr/include
|
||||
rm -r $pkgdir/usr/lib/pkgconfig
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
Loading…
Reference in a new issue