archrelease: copy trunk to extra-x86_64
[arch-packages.git] / fakeroot / trunk / PKGBUILD
blob055bf5ff1ae3cd7c409ff85d3f2b687d33acf3b4
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.28
7 pkgrel=1
8 pkgdesc='Tool for simulating superuser privileges'
9 arch=('x86_64')
10 license=('GPL')
11 url='https://tracker.debian.org/pkg/fakeroot'
12 groups=('base-devel')
13 install=fakeroot.install
14 depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
15 makedepends=('systemd' 'po4a')
16 checkdepends=('sharutils')
17 source=("https://deb.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz")
18 sha256sums=('56d405e36ff685f83879be08fdd654255ab9aa38632b4605a98e896ad63990c2')
20 build() {
21   cd $pkgname-$pkgver
23   ./configure --prefix=/usr \
24     --libdir=/usr/lib/libfakeroot \
25     --disable-static \
26     --with-ipc=sysv
28   make
30   cd doc
31   po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
34 check() {
35   cd $pkgname-$pkgver
36   make check
39 package() {
40   cd $pkgname-$pkgver
41   make DESTDIR="$pkgdir" install
43   install -dm0755 "$pkgdir/etc/ld.so.conf.d/"
44   echo '/usr/lib/libfakeroot' > "$pkgdir/etc/ld.so.conf.d/fakeroot.conf"
46   # install README for sysv/tcp usage
47   install -Dm0644 README "$pkgdir/usr/share/doc/$pkgname/README"