summaryrefslogtreecommitdiffstats
path: root/main/fakeroot/APKBUILD
blob: abf64cf17e06b5f52ac2403d82a6af1fa1c65d32 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fakeroot
pkgver=1.18.3
pkgrel=0
pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user"
arch="all"
license='GPL'
url="http://packages.debian.org/fakeroot"
depends=
subpackages="$pkgname-doc"
source="http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.bz2
	busybox-getopt.patch
	fakeroot-stdint.patch
	fakeroot-uclibc.patch"

prepare() {
	cd $startdir/src/$pkgname-$pkgver
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd $startdir/src/$pkgname-$pkgver
	CONFIG_SHELL=/bin/sh ./configure --prefix=/usr --disable-static
	make || return 1
}

package() {
	cd $startdir/src/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="99c6ba2eb0005086144ee9f1f6fd63f4  fakeroot_1.18.3.orig.tar.bz2
bdbf1db14f2cfdff0f5b4c35da78b9fe  busybox-getopt.patch
50a899380cfd5eae8ce3aaf878fb17b2  fakeroot-stdint.patch
7a54ab51fdb90bc44e366e0a66811bfe  fakeroot-uclibc.patch"