summaryrefslogtreecommitdiff
path: root/repo/fakeroot/fakeroot.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
committerdavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
commit0d37a1ef234c38b27faba43bc3a22f985d311deb (patch)
treedde8df9f508e7323c3d7df599ceade7705c40acd /repo/fakeroot/fakeroot.xibuild
parentf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (diff)
Remove all firmware
Diffstat (limited to 'repo/fakeroot/fakeroot.xibuild')
-rw-r--r--repo/fakeroot/fakeroot.xibuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/repo/fakeroot/fakeroot.xibuild b/repo/fakeroot/fakeroot.xibuild
new file mode 100644
index 0000000..46971af
--- /dev/null
+++ b/repo/fakeroot/fakeroot.xibuild
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+NAME="fakeroot"
+DESC="Gives a fake root environment, useful for building packages as a non-privileged user"
+
+MAKEDEPS=" libtool autoconf automake po4a libcap acl linux-headers"
+
+PKG_VER=1.29
+SOURCE="https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_$PKG_VER.orig.tar.gz"
+
+ADDITIONAL="
+do-not-redefine-id_t.patch
+fakeroot-no64.patch
+fakeroot-skip-ipc-sanity-check.patch
+fakeroot-stdint.patch
+fix-format.patch
+fix-shell-in-fakeroot.patch
+xstatjunk.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ if [ "$CLIBC" = "musl" ]; then
+ # musl does not have _STAT_VER, it's really not used for
+ # anything, so define it as zero (just like uclibc does)
+ export CFLAGS="-D_STAT_VER=0 $CFLAGS"
+ fi
+
+ CONFIG_SHELL=/bin/sh ./bootstrap
+ CONFIG_SHELL=/bin/sh ./configure \
+
+
+ --prefix=/usr \
+ --disable-static
+
+ make
+ cd doc
+ #po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
+}
+
+package() {
+ cd ..
+ make DESTDIR="$PKG_DEST" install
+}
+