commit ef64ab8d14db1696c977b9e05d4f1f0a4409a099 Author: 4679 Date: Mon Apr 11 11:08:17 2016 +0800 initial diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..ab5acea --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +# Generated by mksrcinfo v8 +# Mon Apr 11 03:08:02 UTC 2016 +pkgbase = fakeroot-tcp + pkgdesc = Gives a fake root environment, useful for building packages as a non-privileged user,with tcp ipc + pkgver = 1.20.2 + pkgrel = 1 + url = http://packages.debian.org/fakeroot + install = fakeroot.install + arch = i686 + arch = x86_64 + arch = armv7h + groups = base-devel + license = GPL + depends = glibc + depends = filesystem + depends = sed + depends = util-linux + depends = sh + conflicts = fakeroot + options = !libtool + source = http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.20.2.orig.tar.bz2 + md5sums = a4b4564a75024aa96c86e4d1017ac786 + +pkgname = fakeroot-tcp + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ef1ac02 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 160938 2012-06-07 07:26:48Z allan $ +# Maintainer: Allan McRae +# Contributor: Jochem Kossen + +_pkgname=fakeroot +pkgname=fakeroot-tcp +pkgver=1.20.2 +pkgrel=1 +pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user,with tcp ipc" +arch=('i686' 'x86_64' 'armv7h') +license=('GPL') +url="http://packages.debian.org/fakeroot" +groups=('base-devel') +install=fakeroot.install +depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh') +options=('!libtool') +conflicts=('fakeroot') +source=(http://ftp.debian.org/debian/pool/main/f/${_pkgname}/${_pkgname}_${pkgver}.orig.tar.bz2) +md5sums=('a4b4564a75024aa96c86e4d1017ac786') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + ./configure --prefix=/usr --libdir=/usr/lib/libfakeroot \ + --disable-static --with-ipc=tcp + make +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make DESTDIR=${pkgdir} install + + install -dm755 ${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 -Dm644 $srcdir/$_pkgname-$pkgver/README $pkgdir/usr/share/doc/$_pkgname/README +} diff --git a/fakeroot.install b/fakeroot.install new file mode 100644 index 0000000..986c91b --- /dev/null +++ b/fakeroot.install @@ -0,0 +1,14 @@ +post_install() { + sbin/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 + sbin/ldconfig -r . +} + +pre_remove() { + sbin/ldconfig -r . +}