jobcore/fakeroot/PKGBUILD

69 lines
1.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=fakeroot
pkgver=1.36
pkgrel=01
pkgdesc='Tool for simulating superuser privileges w/o systemd'
url='https://tracker.debian.org/pkg/fakeroot'
groups=( jobbot )
install=fakeroot.install
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
makedepends=(git po4a)
checkdepends=('sharutils')
#source=("https://deb.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz"
source=("git+https://salsa.debian.org/clint/fakeroot.git#tag=upstream/${pkgver}")
# '0001-Cast-uint8_t-pointers.patch')
prepare() {
cd $pkgname
# patch -Np1 < ../0001-Cast-uint8_t-pointers.patch
autoreconf -fi
}
build() {
cd $pkgname
./configure \
--prefix=/usr \
--libdir=/usr/lib/libfakeroot \
--disable-static \
--with-ipc=sysv
make
cd doc
po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
}
check() {
cd $pkgname
make check
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -dm0755 "$pkgdir/usr/lib/ld.so.conf.d/"
echo '/usr/lib/libfakeroot' > "$pkgdir/usr/lib/ld.so.conf.d/fakeroot.conf"
# install README for sysv/tcp usage
install -Dm0644 README "$pkgdir/usr/share/doc/$pkgname/README"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL-3.0-or-later')
sha256sums=('6cf5ddf3fdb4d2ece465e4dc51b4d0b1a265c241bdaf2858f0a1519a9b4e8c63')
## 5fd1d083351f9db9467f84310423cead51ae92bb4adf7d5106778801bf540fee fakeroot-1.36-01-x86_64.pkg.tar.lz