archrelease: copy trunk to staging-x86_64
[arch-packages.git] / fakechroot / repos / extra-x86_64 / PKGBUILD
blob8bcac291beeab0ec226a53652c504927fd73ca38
1 # Maintainer:
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Aaron Griffin <aaron@archlinux.org>
5 pkgname=fakechroot
6 pkgver=2.20.1
7 pkgrel=2
8 pkgdesc="Gives a fake chroot environment"
9 arch=('x86_64')
10 url="https://github.com/dex4er/fakechroot/wiki"
11 license=('LGPL')
12 depends=('sh' 'perl')
13 source=($pkgname-$pkgver.tar.gz::https://github.com/dex4er/fakechroot/archive/${pkgver}.tar.gz)
14 md5sums=('69612efa06636e79a56898512222b0fc')
17 build() {
18   cd $pkgname-$pkgver
19   ./configure --prefix=/usr --sbindir=/usr/bin \
20     --libdir=/usr/lib/libfakeroot --sysconfdir=/etc
21   make
24 check() {
25   cd $pkgname-$pkgver
27   # t/fts.t fails when building on BTRFS...  (really!)
28   make -k check
30   
31 package() {
32   cd $pkgname-$pkgver
33   make DESTDIR="${pkgdir}" install
34   
35   install -dm755 "${pkgdir}"/etc/ld.so.conf.d/
36   echo '/usr/lib/libfakeroot/fakechroot/' > "${pkgdir}"/etc/ld.so.conf.d/fakechroot.conf