OCaml 4.13.1 rebuild, fixes FS#72998
[arch-packages.git] / fakeroot / trunk / PKGBUILD
blob428eaf463da3e16d1a083cd4822cc37e5606995c
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.26
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=('480a578ffdc5592e73df4c086950d321b4adc78dbdaec56c82e4fe1fb68de8e9')
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"