summaryrefslogtreecommitdiff
path: root/repo/system/sbase
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/sbase
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/system/sbase')
-rw-r--r--repo/system/sbase/sbase.xibuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/repo/system/sbase/sbase.xibuild b/repo/system/sbase/sbase.xibuild
new file mode 100644
index 0000000..a380c9e
--- /dev/null
+++ b/repo/system/sbase/sbase.xibuild
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl acl attr gmp ubase"
+
+SOURCE=https://git.suckless.org/sbase
+ADDITIONAL="
+ https://gitea.linfan.moe/mirror/ataraxia/raw/commit/74914d05c701919fe6aa0d63e131df8c4df420fe/stuff/sbase/realpath.1
+ https://gitea.linfan.moe/mirror/ataraxia/raw/commit/74914d05c701919fe6aa0d63e131df8c4df420fe/stuff/sbase/realpath.c
+"
+
+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
+
+ sed -i '182i realpath\\' Makefile
+}
+
+build () {
+ make
+}
+
+package () {
+ make PREFIX=/usr DESTDIR=$PKG_DEST install
+
+ # these are provided by other utils
+ for p in tar sed find xargs grep sort flock; do
+ mv $PKG_DEST/usr/bin/$p $PKG_DEST/usr/bin/s$p
+ mv $PKG_DEST/usr/share/man/man1/$p.1 $PKG_DEST/usr/share/man/man1/s$p.1
+ done
+}