[arch-commits] Commit in fakeroot/repos (3 files)
Christian Hesse
eworm at archlinux.org
Tue Oct 27 07:44:00 UTC 2020
Date: Tuesday, October 27, 2020 @ 07:44:00
Author: eworm
Revision: 398843
archrelease: copy trunk to testing-x86_64
Added:
fakeroot/repos/testing-x86_64/
fakeroot/repos/testing-x86_64/PKGBUILD
(from rev 398842, fakeroot/trunk/PKGBUILD)
fakeroot/repos/testing-x86_64/fakeroot.install
(from rev 398842, fakeroot/trunk/fakeroot.install)
------------------+
PKGBUILD | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
fakeroot.install | 14 +++++++++++++
2 files changed, 68 insertions(+)
Copied: fakeroot/repos/testing-x86_64/PKGBUILD (from rev 398842, fakeroot/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-10-27 07:44:00 UTC (rev 398843)
@@ -0,0 +1,54 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Jochem Kossen <j.kossen at home.nl>
+
+pkgname=fakeroot
+pkgver=1.25.3
+pkgrel=1
+pkgdesc='Tool for simulating superuser privileges'
+arch=('x86_64')
+license=('GPL')
+url='https://tracker.debian.org/pkg/fakeroot'
+groups=('base-devel')
+install=fakeroot.install
+depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
+makedepends=('systemd' 'po4a')
+checkdepends=('sharutils')
+source=("https://deb.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.orig.tar.gz")
+sha256sums=('8e903683357f7f5bcc31b879fd743391ad47691d4be33d24a76be3b6c21e956c')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ ./bootstrap
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ ./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-$pkgver
+ make check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -dm0755 "$pkgdir/etc/ld.so.conf.d/"
+ echo '/usr/lib/libfakeroot' > "$pkgdir/etc/ld.so.conf.d/fakeroot.conf"
+
+ # install README for sysv/tcp usage
+ install -Dm0644 README "$pkgdir/usr/share/doc/$pkgname/README"
+}
Copied: fakeroot/repos/testing-x86_64/fakeroot.install (from rev 398842, fakeroot/trunk/fakeroot.install)
===================================================================
--- testing-x86_64/fakeroot.install (rev 0)
+++ testing-x86_64/fakeroot.install 2020-10-27 07:44:00 UTC (rev 398843)
@@ -0,0 +1,14 @@
+post_install() {
+ usr/bin/ldconfig -r .
+}
+
+post_upgrade() {
+ if [ "$(vercmp $2 1.14.4-2)" -lt 0 ]; then
+ sed -i -e '/\/usr\/lib\/libfakeroot/d' etc/ld.so.conf
+ fi
+ usr/bin/ldconfig -r .
+}
+
+pre_remove() {
+ usr/bin/ldconfig -r .
+}
More information about the arch-commits
mailing list