Name fakeroot
Description Tool for simulating superuser privileges
Version 1.37.2-1
Package Base fakeroot
Homepage https://tracker.debian.org/pkg/fakeroot
Maintainers ['Bartłomiej Piotrowski <bpiotrowski@archlinux.org>', 'Christian Hesse <eworm@archlinux.org>']
Contributors ['Allan McRae <allan@archlinux.org>', 'Jochem Kossen <j.kossen@home.nl>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/fakeroot
Sources ['git+https://salsa.debian.org/clint/fakeroot.git#tag=upstream/1.37.2']
Dependencies ['filesystem', 'glibc', 'sed', 'sh', 'util-linux']
Optional-Dependencies []
Build-Dependencies ['git', 'systemd', 'po4a']
Provides []
Builddate 18-01-2026 21:59:57
Architecture x86_64
Distro-Version
Licenses ['GPL-3.0-or-later']
Hash 0e2b7913629426cc9719de1092279fec0b7f4586229018b4a347e8ec94718da4
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Jochem Kossen <j.kossen@home.nl>

pkgname=fakeroot
pkgver=1.37.2
pkgrel=1
pkgdesc='Tool for simulating superuser privileges'
arch=('x86_64')
license=('GPL-3.0-or-later')
url='https://tracker.debian.org/pkg/fakeroot'
install=fakeroot.install
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
makedepends=('git' 'systemd' 'po4a')
checkdepends=('sharutils')
source=("git+https://salsa.debian.org/clint/fakeroot.git#tag=upstream/${pkgver}")
sha256sums=('46f44681cc939dd3f127761717830c0bfa72e1568191d4df071ae297013591e3')

prepare() {
  cd "${pkgname}"

  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"
}