archrelease: copy trunk to extra-x86_64
[arch-packages.git] / fakeroot / trunk / PKGBUILD
blobb390e584520181a405add7e41879b02e145f9da8
1 # Maintainer:  BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Jochem Kossen <j.kossen@home.nl>
5 pkgname=fakeroot
6 pkgver=1.31
7 pkgrel=2
8 pkgdesc='Tool for simulating superuser privileges'
9 arch=('x86_64')
10 license=('GPL')
11 url='https://tracker.debian.org/pkg/fakeroot'
12 install=fakeroot.install
13 depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
14 makedepends=('systemd' 'po4a')
15 checkdepends=('sharutils')
16 source=("https://deb.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz")
17 sha256sums=('63886d41e11c56c7170b9d9331cca086421b350d257338ef14daad98f77e202f')
19 build() {
20   cd $pkgname-$pkgver
22   ./configure --prefix=/usr \
23     --libdir=/usr/lib/libfakeroot \
24     --disable-static \
25     --with-ipc=sysv
27   make
29   cd doc
30   po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
33 check() {
34   cd $pkgname-$pkgver
35   make check
38 package() {
39   cd $pkgname-$pkgver
40   make DESTDIR="$pkgdir" install
42   install -dm0755 "$pkgdir/etc/ld.so.conf.d/"
43   echo '/usr/lib/libfakeroot' > "$pkgdir/etc/ld.so.conf.d/fakeroot.conf"
45   # install README for sysv/tcp usage
46   install -Dm0644 README "$pkgdir/usr/share/doc/$pkgname/README"