From 6b3593e13e688d558be05846d1e2d9acf6e97c71 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 2 Mar 2022 16:24:16 +0000 Subject: added s6 init --- repo/system/sbase.xibuild | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 repo/system/sbase.xibuild (limited to 'repo/system/sbase.xibuild') diff --git a/repo/system/sbase.xibuild b/repo/system/sbase.xibuild new file mode 100644 index 0000000..03e8f86 --- /dev/null +++ b/repo/system/sbase.xibuild @@ -0,0 +1,36 @@ +#!/bin/sh + +MAKEDEPS="make " +DEPS="musl acl attr gmp" + +SOURCE=https://git.suckless.org/sbase + +DESC="sbase from suckless.org" + +prepare () { + # add uname -o since some packages need it + + sed -i "39i case 'o':" uname.c + sed -i "40i sflag = 1;" uname.c + sed -i "41i break;" uname.c +} + +build () { + make +} + +package () { + make PREFIX=/usr DESTDIR=$PKG_DEST install + + for p in tar sed find; do + rm $PKG_DEST/usr/bin/$p + rm $PKG_DEST/usr/share/man/man1/$p.1 + done + + # quick and dirty realpath replacement + realpath=$PKG_DEST/usr/bin/realpath + + echo '#!/bin/bash' > $realpath + echo '[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"' >> $realpath + chmod +x $realpath +} -- cgit v1.2.1