aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fakechroot
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fakechroot')
-rw-r--r--testing/fakechroot/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/fakechroot/APKBUILD b/testing/fakechroot/APKBUILD
new file mode 100644
index 0000000000..e3968a3368
--- /dev/null
+++ b/testing/fakechroot/APKBUILD
@@ -0,0 +1,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://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"