# $Id$ # Maintainer : Allan McRae # Contributor: Aaron Griffin 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 }