diff options
author | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
commit | 739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch) | |
tree | 09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/ubase/ubase.xibuild | |
parent | 4c585ad54388285500fd18a6aaa516894e0f2c16 (diff) |
moved everything to new file formatting
Diffstat (limited to 'repo/system/ubase/ubase.xibuild')
-rw-r--r-- | repo/system/ubase/ubase.xibuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/system/ubase/ubase.xibuild b/repo/system/ubase/ubase.xibuild new file mode 100644 index 0000000..0fd1258 --- /dev/null +++ b/repo/system/ubase/ubase.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +MAKEDEPS="make findutils sed" +DEPS="musl" + +SOURCE=https://git.suckless.org/ubase + +DESC="ubase from suckless.org" + +prepare () { + /usr/bin/find -type 'f' -name '*.c' | xargs sed -i "s@#include <sys/types.h>@#include <sys/sysmacros.h>@g" +} + +build () { + make +} + +package () { + for p in stat id df dd truncate who; do + install -d $PKG_DEST/usr/bin + install -m755 $p $PKG_DEST/usr/bin + + if [ -f $p.1 ]; then + install -d $PKG_DEST/usr/share/man + install -m644 $p.1 $PKG_DEST/usr/share/man/$p.1 + fi + if [ -f $p.8 ]; then + install -d $PKG_DEST/usr/share/man + install -m644 $p.8 $PKG_DEST/usr/share/man/$p.8 + fi + done; +} |