From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/ubase/ubase.xibuild | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 repo/ubase/ubase.xibuild (limited to 'repo/ubase') diff --git a/repo/ubase/ubase.xibuild b/repo/ubase/ubase.xibuild new file mode 100644 index 0000000..e95aceb --- /dev/null +++ b/repo/ubase/ubase.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +MAKEDEPS="make findutils sed" +DEPS="musl utmps" + +SOURCE=https://git.suckless.org/ubase + +DESC="ubase from suckless.org" + +prepare () { + /usr/bin/find -type 'f' -name '*.c' | xargs sed -i "s@#include @#include @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; +} -- cgit v1.2.1