summaryrefslogtreecommitdiffstats
path: root/main/fakeroot/APKBUILD
blob: 82e07dc4005978e32eca13aeae8414062a0e3967 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fakeroot
pkgver=1.14.5
pkgrel=0
pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user"
arch="x86 x86_64"
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-compat.patch"

prepare() {
	cd $startdir/src/$pkgname-$pkgver
	patch -p1 < ../busybox-compat.patch
}

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="659a1f3a36554abfc2a3eaad2fdc0604  fakeroot_1.14.5.orig.tar.bz2
ea7b7e3065090d72804cdf4719dd5832  busybox-compat.patch"