summaryrefslogtreecommitdiff
path: root/repo/fakeroot/fakeroot.xibuild
blob: 46971af55154c6853e47365976a32f358b2f9ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
}