aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fakechroot/APKBUILD
blob: 775cf058da41ebd65aec4ac9283e94fc624a27b7 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=fakechroot
pkgver=2.16
pkgrel=0
pkgdesc="fakeroot-like utility for chrooting"
url="http://github.com/fakechroot/fakechroot"
arch="all"
license="LGPL"
depends=""
depends_dev=""
makedepends="$depends_dev wget"
install=""
subpackages="$pkgname-doc"
source="http://github.com/downloads/fakechroot/fakechroot/fakechroot-${pkgver}.tar.gz"

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

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc || return 1
	make
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/fakechroot/*.la
}

md5sums="3ea5efb76664e787450e0cfcefc1b807  fakechroot-2.16.tar.gz"