diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/sbase/sbase.xibuild | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/sbase/sbase.xibuild')
-rw-r--r-- | repo/sbase/sbase.xibuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/repo/sbase/sbase.xibuild b/repo/sbase/sbase.xibuild new file mode 100644 index 0000000..a380c9e --- /dev/null +++ b/repo/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 +} |