summaryrefslogtreecommitdiffstats
path: root/testing/fakechroot/APKBUILD
blob: 0ce2bc759aaeac607b4a82f5eea4b5086be69280 (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
42
43
44
45
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=fakechroot
pkgver=2.16
pkgrel=1
pkgdesc="A fakeroot-like utility for chrooting"
url="http://github.com/fakechroot/fakechroot"
arch="all"
license="LGPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/fakechroot/fakechroot/archive/${pkgver}.tar.gz"

_builddir="${srcdir}/$pkgname-${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
	./autogen.sh
}

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

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

md5sums="f5f7326eaddaaf0229d70f22a0aef859  fakechroot-2.16.tar.gz"
sha256sums="c9baaa6aea853c1602ef5f3d8bdb153d5b5765f1e69cdf8244bab7417d61700c  fakechroot-2.16.tar.gz"
sha512sums="c8cebf44ddd3ff21630db745b83f98984320d4730b53fbdaa9b7df545341146c87b8b9c2d85a4f31a516b7dcbc15aa83c5a9bf2bfc426de6e75fc88ce4e710f9  fakechroot-2.16.tar.gz"