summaryrefslogtreecommitdiffstats
path: root/testing/fakechroot/APKBUILD
blob: 96525b3bad38b21afac5bd89b0a631e46460465d (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"
install=""
subpackages="$pkgname-doc"
source="http://cloud.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"