summaryrefslogtreecommitdiffstats
path: root/main/fakeroot/APKBUILD
blob: 8fb54da738d7c9dc7a1e4bccef62395c13855997 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fakeroot
pkgver=1.18.2
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"

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="79f32331358ad58499704ea5e19fd0ae  fakeroot_1.18.2.orig.tar.bz2
bdbf1db14f2cfdff0f5b4c35da78b9fe  busybox-getopt.patch"