lots of updates

This commit is contained in:
Ella-0 2021-01-31 11:09:14 +00:00
parent 872362f202
commit c89aa236bd
45 changed files with 5388 additions and 74 deletions

4
.gitignore vendored
View file

@ -2,3 +2,7 @@ src/
out/
pkgs/*/src
pkgs/*/out
isoroot
isoout
fdiskscript
*.img

View file

@ -119,6 +119,7 @@ elif [ "$iu" = "1" ]; then
done
echo $OFILES
echo $NFILES
elif [ "$i" = "1" ]; then
bname_we=$(basename "$1")

22
pkgs/bat/build.sh Normal file
View file

@ -0,0 +1,22 @@
pkgname=bat
pkgver=0.17.1
fetch() {
curl -L "https://github.com/sharkdp/bat/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
cargo build --release --locked --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/"
}
license() {
cd $pkgname-$pkgver
cat LICENSE-MIT
}

View file

@ -1,10 +1,10 @@
pkgver=20201212
pkgver=20210110
pkgname=bmake
bad=""
bad="musl"
ext="doc"
fetch() {
curl http://www.crufty.net/ftp/pub/sjg/bmake-20201212.tar.gz -o $pkgname-$pkgver.tar.gz
curl http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
mv $pkgname $pkgname-$pkgver
cd $pkgname-$pkgver
@ -14,7 +14,7 @@ fetch() {
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
./configure --prefix=/usr --with-default-sys-path=/usr/share/mk
sh ./make-bootstrap.sh
}

View file

@ -1,6 +1,7 @@
pkgver=1.33.0
pkgname=busybox
bad=gmake
deps="musl"
pkgrel=1
fetch() {
@ -20,11 +21,167 @@ package() {
install -d $pkgdir
cp -r ./_install/* $pkgdir
chmod 4755 $pkgdir/bin/busybox
install -Dm755 ./examples/udhcp/simple.script $pkgdir/usr/share/udhcpc/default.script
rm $pkgdir/linuxrc
rm $pkgdir/bin/ln
rm $pkgdir/bin/uname
rm $pkgdir/usr/bin/install
rm $pkgdir/usr/bin/lspci
rm $pkgdir/bin/cat
rm $pkgdir/bin/chattr
rm $pkgdir/bin/chgrp
rm $pkgdir/bin/chmod
rm $pkgdir/bin/chown
rm $pkgdir/bin/cp
rm $pkgdir/bin/cpio
rm $pkgdir/bin/date
rm $pkgdir/bin/dmesg
rm $pkgdir/bin/dnsdomainname
rm $pkgdir/bin/echo
rm $pkgdir/bin/egrep
rm $pkgdir/bin/false
rm $pkgdir/bin/fgrep
rm $pkgdir/bin/fsync
rm $pkgdir/bin/grep
rm $pkgdir/bin/hostname
rm $pkgdir/bin/kill
rm $pkgdir/bin/login
rm $pkgdir/bin/ls
rm $pkgdir/bin/lsattr
rm $pkgdir/bin/mkdir
rm $pkgdir/bin/mknod
rm $pkgdir/bin/mktemp
rm $pkgdir/bin/mount
rm $pkgdir/bin/mountpoint
rm $pkgdir/bin/mv
rm $pkgdir/bin/netstat
rm $pkgdir/bin/nice
rm $pkgdir/bin/pidof
rm $pkgdir/bin/printenv
rm $pkgdir/bin/ps
rm $pkgdir/bin/pwd
rm $pkgdir/bin/rm
rm $pkgdir/bin/rmdir
rm $pkgdir/bin/sed
rm $pkgdir/bin/sleep
rm $pkgdir/bin/stat
rm $pkgdir/bin/su
rm $pkgdir/bin/sync
rm $pkgdir/bin/touch
rm $pkgdir/bin/true
rm $pkgdir/bin/umount
rm $pkgdir/bin/usleep
rm $pkgdir/sbin/blockdev
rm $pkgdir/sbin/freeramdisk
rm $pkgdir/sbin/halt
rm $pkgdir/sbin/hwclock
rm $pkgdir/sbin/ifconfig
rm $pkgdir/sbin/insmod
rm $pkgdir/sbin/losetup
rm $pkgdir/sbin/lsmod
rm $pkgdir/sbin/mkswap
rm $pkgdir/sbin/modinfo
rm $pkgdir/sbin/pivot_root
rm $pkgdir/sbin/poweroff
rm $pkgdir/sbin/reboot
rm $pkgdir/sbin/rmmod
rm $pkgdir/sbin/swapoff
rm $pkgdir/sbin/swapon
rm $pkgdir/sbin/switch_root
rm $pkgdir/sbin/sysctl
rm $pkgdir/sbin/vconfig
rm $pkgdir/usr/bin/basename
rm $pkgdir/usr/bin/bunzip2
rm $pkgdir/usr/bin/bzcat
rm $pkgdir/usr/bin/cal
rm $pkgdir/usr/bin/chrt
rm $pkgdir/usr/bin/chvt
rm $pkgdir/usr/bin/clear
rm $pkgdir/usr/bin/cmp
rm $pkgdir/usr/bin/comm
rm $pkgdir/usr/bin/cut
rm $pkgdir/usr/bin/dirname
rm $pkgdir/usr/bin/du
rm $pkgdir/usr/bin/eject
rm $pkgdir/usr/bin/env
rm $pkgdir/usr/bin/expand
rm $pkgdir/usr/bin/factor
rm $pkgdir/usr/bin/fallocate
rm $pkgdir/usr/bin/find
rm $pkgdir/usr/bin/flock
rm $pkgdir/usr/bin/free
rm $pkgdir/usr/bin/ftpget
rm $pkgdir/usr/bin/ftpput
rm $pkgdir/usr/bin/groups
rm $pkgdir/usr/bin/head
rm $pkgdir/usr/bin/hexedit
rm $pkgdir/usr/bin/id
rm $pkgdir/usr/bin/killall
rm $pkgdir/usr/bin/less
rm $pkgdir/usr/bin/logger
rm $pkgdir/usr/bin/logname
rm $pkgdir/usr/bin/lsusb
rm $pkgdir/usr/bin/md5sum
rm $pkgdir/usr/bin/microcom
rm $pkgdir/usr/bin/mkfifo
rm $pkgdir/usr/bin/mkpasswd
rm $pkgdir/usr/bin/nc
rm $pkgdir/usr/bin/nl
rm $pkgdir/usr/bin/nohup
rm $pkgdir/usr/bin/nproc
rm $pkgdir/usr/bin/nsenter
rm $pkgdir/usr/bin/od
rm $pkgdir/usr/bin/passwd
rm $pkgdir/usr/bin/paste
rm $pkgdir/usr/bin/patch
rm $pkgdir/usr/bin/pgrep
rm $pkgdir/usr/bin/pkill
rm $pkgdir/usr/bin/pmap
rm $pkgdir/usr/bin/printf
rm $pkgdir/usr/bin/pwdx
rm $pkgdir/usr/bin/readlink
rm $pkgdir/usr/bin/realpath
rm $pkgdir/usr/bin/renice
rm $pkgdir/usr/bin/reset
rm $pkgdir/usr/bin/seq
rm $pkgdir/usr/bin/setfattr
rm $pkgdir/usr/bin/setsid
rm $pkgdir/usr/bin/sha1sum
rm $pkgdir/usr/bin/shred
rm $pkgdir/usr/bin/sort
rm $pkgdir/usr/bin/split
rm $pkgdir/usr/bin/strings
rm $pkgdir/usr/bin/tac
rm $pkgdir/usr/bin/tail
rm $pkgdir/usr/bin/taskset
rm $pkgdir/usr/bin/tee
rm $pkgdir/usr/bin/test
rm $pkgdir/usr/bin/time
rm $pkgdir/usr/bin/timeout
rm $pkgdir/usr/bin/top
rm $pkgdir/usr/bin/truncate
rm $pkgdir/usr/bin/tty
rm $pkgdir/usr/bin/uniq
rm $pkgdir/usr/bin/unlink
rm $pkgdir/usr/bin/unshare
rm $pkgdir/usr/bin/uptime
rm $pkgdir/usr/bin/uudecode
rm $pkgdir/usr/bin/uuencode
rm $pkgdir/usr/bin/w
rm $pkgdir/usr/bin/wc
rm $pkgdir/usr/bin/which
rm $pkgdir/usr/bin/who
rm $pkgdir/usr/bin/whoami
rm $pkgdir/usr/bin/xargs
rm $pkgdir/usr/bin/xxd
rm $pkgdir/usr/bin/yes
rm $pkgdir/usr/sbin/chroot
rm $pkgdir/usr/sbin/fsfreeze
}
license() {

View file

@ -1,5 +1,6 @@
pkgver=20210109
pkgname=byacc
deps="musl"
bad=""
ext="doc"

View file

@ -13,9 +13,9 @@ build() {
cd $pkgname-$pkgver
./bootstrap \
--prefix=/usr \
--mandir=/share/man \
--datadir=/share/$pkgname \
--docdir=/share/doc/$pkgname \
--mandir=/usr/share/man \
--datadir=/usr/share/$pkgname \
--docdir=/usr/share/doc/$pkgname \
--generator=Ninja \
--no-system-libs

View file

@ -30,8 +30,14 @@ package() {
rm -r $pkgdir/usr/lib/cmake
}
package_doc() {
samu
package_dev() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bin
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
}
license() {

24
pkgs/exa/build.sh Normal file
View file

@ -0,0 +1,24 @@
pkgname=exa
pkgver=0.9.0
fetch() {
curl -L "https://github.com/ogham/exa/archive/v$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
ln -s /usr/bin/gmake make
}
build() {
cd $pkgname-$pkgver
PATH=$(pwd)"/..:$PATH" cargo build --release --locked --all-features
}
package() {
cd $pkgname-$pkgver
cd target/release
install -Dm755 "$pkgname" "$pkgdir/usr/bin/"
}
license() {
cd $pkgname-$pkgver
cat LICENCE
}

View file

@ -26,13 +26,16 @@ package() {
rm -r $pkgdir/usr/share
}
package_doc() {
package_dev() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/share
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
}
license() {
cd $pkgname-$pkgver
cat LICENSE
cat COPYING
}

View file

@ -1,11 +1,12 @@
pkgver=2.30.0
pkgname=git
pkgrel=1
deps="musl:zlib:curl:dropbear"
bad="gmake"
ext="doc"
fetch() {
curl -L "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.0.tar.xz" -o $pkgname-$pkgver.tar.xz
curl "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.0.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}

View file

@ -1,6 +1,7 @@
pkgver=4.3
pkgname=gmake
pkgrel=1
deps="musl"
bad="gmake"
ext="doc:dev"

View file

@ -1,6 +1,7 @@
pkgver=master
pkgname=heirloom-doctools
pkgrel=1
deps="musl"
bad="gmake"
ext="doc"

View file

@ -73,12 +73,12 @@ STRIP=strip
#
# The C compiler.
#
CC=clang
CC=cc
#
# The C++ compiler.
#
CXX=clang++
CXX=c++
#
# Compiler flags.

View file

@ -1,11 +1,12 @@
pkgver=builtin-terminal-ui
pkgname=kakoune
pkgrel=1
deps="musl:llvm"
bad=""
ext="doc"
fetch() {
curl -L "https://github.com/mawww/kakoune/archive/builtin-terminal-ui.tar.gz" -o $pkgname-$pkgver.tar.xz
curl "https://github.com/mawww/kakoune/archive/builtin-terminal-ui.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}

View file

@ -3,7 +3,7 @@ pkgname=kati
pkgrel=1
fetch() {
curl -L "https://github.com/google/kati/archive/master.tar.gz" -o $pkgname-$pkgver.tar.gz
curl -LL "https://github.com/google/kati/archive/master.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}

View file

@ -1,6 +1,7 @@
pkgver=main
pkgname=lazybox
pkgrel=1
deps="busybox:toybox"
bad=""
ext="dev"

View file

@ -1,5 +1,6 @@
pkgname=less
pkgver=563
deps="musl:netbsd-curses"
ext="doc"
fetch() {

View file

@ -10,7 +10,7 @@ fetch() {
build() {
cd $pkgname-$pkgver
meson build -Dintel=false --prefix /usr
meson build --prefix /usr
samu -C build
}

View file

@ -31,7 +31,15 @@ package() {
rm -r $pkgdir/usr/lib/pkgconfig
}
package_doc() {
package_dev() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
rm -r $pkgdir/etc
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bin
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
samu
}

View file

@ -0,0 +1,34 @@
pkgname=libxkbcommon
pkgver=1.0.3
fetch() {
curl -L "https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-1.0.3.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv $pkgname-xkbcommon-$pkgver $pkgname-$pkgver
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib \
-Denable-x11=false \
-Denable-wayland=true \
-Denable-docs=false
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -11,17 +11,17 @@ fetch() {
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --without-python
make
gmake
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
gmake install DESTDIR=$pkgdir
}
package_dev() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
gmake install DESTDIR=$pkgdir
}
license() {

31
pkgs/linux-pam/build.sh Normal file
View file

@ -0,0 +1,31 @@
pkgname=linux-pam
pkgver=1.5.1
fetch() {
curl -L "https://github.com/linux-pam/linux-pam/releases/download/v1.5.1/Linux-PAM-1.5.1.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv Linux-PAM-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--libdir=/usr/lib \
--sbindir=/usr/sbin
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

View file

@ -16,8 +16,9 @@ fetch() {
build() {
cd $pkgname-$pkgver
#gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 defconfig
#gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 menuconfig
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 oldconfig
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 menuconfig
cp .config ../../x86_64.config.new
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1
}

4847
pkgs/linux/x86_64.config.new Normal file

File diff suppressed because it is too large Load diff

View file

@ -97,6 +97,8 @@ package() {
cd build
DESTDIR=$pkgdir samu install
ln -sr $pkgdir/usr/bin/clang $pkgdir/usr/bin/cc
ln -sr $pkgdir/usr/bin/clang $pkgdir/usr/bin/c89
ln -sr $pkgdir/usr/bin/clang $pkgdir/usr/bin/c99
ln -sr $pkgdir/usr/bin/clang++ $pkgdir/usr/bin/c++
}

View file

@ -0,0 +1,24 @@
--- a/meson.build
+++ b/meson.build
@@ -448,7 +448,8 @@
# Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
use_elf_tls = false
-if not ['windows', 'freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
+with_use_elf_tls = get_option('use-elf-tls')
+if with_use_elf_tls and not ['windows', 'freebsd'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
pre_args += '-DUSE_ELF_TLS'
use_elf_tls = true
endif
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -464,3 +464,9 @@
value : true,
description : 'use msse2 flag for mingw x86. Default: true',
)
+option(
+ 'use-elf-tls',
+ type : 'boolean',
+ value : false,
+ description : 'Build support for initial-exec TLS model'
+)

View file

@ -7,7 +7,10 @@ fetch() {
tar -xf $pkgname-$pkgver.tar.gz
mkdir $pkgname-$pkgver/build
cp ../byacc-out-mid-build.patch .
cp ../alpine-tls.patch .
cp ../LICENSE .
cd $pkgname-$pkgver
patch -p1 < ../alpine-tls.patch
}
build() {
@ -16,10 +19,10 @@ build() {
meson .. \
--prefix=/usr \
--buildtype=release \
-Dplatforms= \
-Dplatforms=wayland \
-Ddri3=true \
-Ddri-drivers=i915,i965 \
-Dgallium-drivers= \
-Dgallium-drivers=iris \
-Dgallium-vdpau=false \
-Dgallium-xvmc=false \
-Dgallium-omx=disabled \

View file

@ -1,4 +1,4 @@
pkgver=0.55.0
pkgver=0.56.2
pkgname=meson
deps=python
bad=""

View file

@ -1,5 +1,6 @@
pkgver=59c
pkgname=mksh
deps="musl"
bad=""
ext="doc"

View file

@ -1,11 +1,13 @@
pkgver=1.2.2
pkgname=musl
deps=""
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
cd $pkgname-$pkgver
}
build() {

View file

@ -1,10 +1,11 @@
pkgver=0.3.1
pkgname=netbsd-curses
bad=""
deps="musl"
ext="doc:dev"
fetch() {
curl -L https://github.com/sabotage-linux/netbsd-curses/archive/v$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
curl -L http://github.com/sabotage-linux/netbsd-curses/archive/v$pkgver.tar.gz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
@ -34,7 +35,6 @@ package_dev() {
cd $pkgname-$pkgver
ckati install DESTDIR=$pkgdir PREFIX=/usr
rm $pkgdir/usr/lib/*.so
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/share
rm -r $pkgdir/usr/bin
}

View file

@ -1,6 +1,7 @@
pkgver=6.7
pkgname=om4
pkgrel=1
deps="musl"
bad=""
ext="doc"
@ -25,7 +26,7 @@ package() {
package_doc() {
cd $pkgname-$pkgver
install -d $pkgdir/usr/share/man/man1
install -Dm644 m4.1 $pkgdir/share/man/man1
install -Dm644 m4.1 $pkgdir/usr/share/man/man1
}
license() {

30
pkgs/python-mako/build.sh Normal file
View file

@ -0,0 +1,30 @@
pkgver=1.1.4
pkgname=python-mako
deps=python
bad=""
ext="doc"
fetch() {
curl -L "https://pypi.io/packages/source/M/Mako/Mako-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
mv Mako-$pkgver $pkgname-$pkgver
}
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 LICENSE
}

View file

@ -13,7 +13,7 @@ build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--with-system-ffi=false \
--with-system-ffi=true \
ax_cv_c_float_words_bigendian=no
make
}

View file

@ -1,6 +1,7 @@
pkgver=0.8.4
pkgname=toybox
pkgrel=1
deps="musl:pci-ids"
fetch() {
curl "http://www.landley.net/toybox/downloads/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
@ -17,13 +18,16 @@ build() {
package() {
cd $pkgname-$pkgver
install -d $pkgdir/bin
install -Dm755 ./toybox $pkgdir/bin/
ln -sr $pkgdir/bin/toybox $pkgdir/bin/ln
ln -sr $pkgdir/bin/toybox $pkgdir/bin/uname
install -d $pkgdir/usr/bin
ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/install
ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/lspci
# install -d $pkgdir/bin
# install -Dm755 ./toybox $pkgdir/bin/
# ln -sr $pkgdir/bin/toybox $pkgdir/bin/ln
# ln -sr $pkgdir/bin/toybox $pkgdir/bin/uname
# install -d $pkgdir/usr/bin
# ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/install
# ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/lspci
gmake PREFIX=$pkgdir install
rm $pkgidr/usr/bin/clear
}
license() {

View file

@ -0,0 +1,23 @@
pkgname=wayland-protocols
pkgver=1.20
fetch() {
curl "https://wayland.freedesktop.org/releases/wayland-protocols-1.20.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

29
pkgs/wayland/build.sh Normal file
View file

@ -0,0 +1,29 @@
pkgname=wayland
pkgver=1.19.0
fetch() {
curl "https://wayland.freedesktop.org/releases/wayland-1.19.0.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--buildtype=release \
--prefix=/usr \
-Ddocumentation=false
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -19,7 +19,7 @@ build() {
-Dimage-jpeg=false \
-Dimage-webp=false \
-Dlauncher-logind=false \
-Dweston-launch=false \
-Dweston-launch=true \
-Dbackend-drm-screencast-vaapi=false \
-Dbackend-rdp=false \
-Dbackend-x11=false \

View file

@ -1,35 +0,0 @@
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
}

View file

@ -24,10 +24,13 @@ package() {
rm -r $pkgdir/usr/share
}
package_doc() {
package_dev() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
rm -r $pkgdir/usr/share
}
license() {

28
pkgs/zsh/build.sh Normal file
View file

@ -0,0 +1,28 @@
pkgname=zsh
pkgver=5.8
fetch() {
curl "https://www.zsh.org/pub/zsh-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
gmake
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENCE
# cat COPYING
}

View file

@ -12,7 +12,8 @@ build() {
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}

30
templates/meson.build.sh Normal file
View file

@ -0,0 +1,30 @@
pkgname=
pkgver=
fetch() {
curl "" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

23
templates/rust.build.sh Normal file
View file

@ -0,0 +1,23 @@
pkgname=
pkgver=
fetch() {
curl "" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
cargo build --release --locked --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}