summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-09-04 21:41:18 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-09-04 21:41:18 (GMT)
commitbed8b45575c0365415c452dc1a63108fcf9f3d82 (patch)
tree528bf113e50014ed3ef9ca6bd2f6218bbd4fa4ad /abs/extra
parent8b4a9048580d17aaa7b085c3efd9295a5aa32ebd (diff)
downloadlinhes_pkgbuild-bed8b45575c0365415c452dc1a63108fcf9f3d82.zip
linhes_pkgbuild-bed8b45575c0365415c452dc1a63108fcf9f3d82.tar.gz
linhes_pkgbuild-bed8b45575c0365415c452dc1a63108fcf9f3d82.tar.bz2
fakechroot: initial inclusion. dep of pacman 4.1.2
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/fakechroot/PKGBUILD43
-rw-r--r--abs/extra/fakechroot/fakechroot.install11
2 files changed, 54 insertions, 0 deletions
diff --git a/abs/extra/fakechroot/PKGBUILD b/abs/extra/fakechroot/PKGBUILD
new file mode 100644
index 0000000..4cdd8c9
--- /dev/null
+++ b/abs/extra/fakechroot/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer : Allan McRae <allan@archlinux.org>
+# Contributor: Aaron Griffin <aaron@archlinux.org>
+
+pkgname=fakechroot
+pkgver=2.16
+pkgrel=3
+pkgdesc="Gives a fake chroot environment"
+arch=('i686' 'x86_64')
+url="https://github.com/fakechroot/fakechroot/wiki"
+license=('LGPL')
+options=('!libtool')
+install=fakechroot.install
+source=(https://github.com/downloads/fakechroot/fakechroot/fakechroot-${pkgver}.tar.gz)
+md5sums=('3ea5efb76664e787450e0cfcefc1b807')
+
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # https://github.com/fakechroot/fakechroot/issues/10
+ sed -i "s#usr/sbin/chroot#usr/bin/chroot#" test/testtree.sh test/t/chroot.t
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --sbindir=/usr/bin \
+ --libdir=/usr/lib/libfakeroot --sysconfdir=/etc
+ make
+}
+
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make check
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
+
+ install -dm755 ${pkgdir}/etc/ld.so.conf.d/
+ echo '/usr/lib/libfakeroot/fakechroot/' > ${pkgdir}/etc/ld.so.conf.d/fakechroot.conf
+}
diff --git a/abs/extra/fakechroot/fakechroot.install b/abs/extra/fakechroot/fakechroot.install
new file mode 100644
index 0000000..61c5b73
--- /dev/null
+++ b/abs/extra/fakechroot/fakechroot.install
@@ -0,0 +1,11 @@
+post_install() {
+ sbin/ldconfig -r .
+}
+
+post_upgrade() {
+ sbin/ldconfig -r .
+}
+
+post_remove() {
+ sbin/ldconfig -r .
+}