[arch-commits] CVS update of arch/build/base/fakeroot (PKGBUILD fakeroot.install)
Tobias Powalowski
tpowa at archlinux.org
Sun May 13 08:01:17 UTC 2007
Date: Sunday, May 13, 2007 @ 04:01:17
Author: tpowa
Path: /home/cvs-arch/arch/build/base/fakeroot
Added: PKGBUILD (1.1) fakeroot.install (1.1)
'newpkg: moved in from system'
------------------+
PKGBUILD | 24 ++++++++++++++++++++++++
fakeroot.install | 28 ++++++++++++++++++++++++++++
2 files changed, 52 insertions(+)
Index: arch/build/base/fakeroot/PKGBUILD
diff -u /dev/null arch/build/base/fakeroot/PKGBUILD:1.1
--- /dev/null Sun May 13 04:01:17 2007
+++ arch/build/base/fakeroot/PKGBUILD Sun May 13 04:01:15 2007
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD,v 1.1 2007/05/13 08:01:15 tpowa Exp $
+# Maintainer: judd <jvinet at zeroflux.org>
+# Contributor: Jochem Kossen <j.kossen at home.nl>
+pkgname=fakeroot
+pkgver=1.5.10
+pkgrel=2
+pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user"
+arch=(i686 x86_64)
+url="http://packages.debian.org/fakeroot"
+install=fakeroot.install
+depends=('glibc')
+license=('GPL')
+options=(NOLIBTOOL)
+source=(http://ftp.debian.org/debian/pool/main/f/$pkgname/$pkgname\_$pkgver.tar.gz
+ http://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg284377/froot_1_5_10-atfuncs.patch)
+md5sums=('76730bf4c9068773e857e18c346d8c81')
+
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+ patch -Np1 -i ../froot_1_5_10-atfuncs.patch || return 1
+ ./configure --prefix=/usr --libdir=/usr/lib/libfakeroot
+ make || return 1
+ make DESTDIR=$startdir/pkg install
+}
Index: arch/build/base/fakeroot/fakeroot.install
diff -u /dev/null arch/build/base/fakeroot/fakeroot.install:1.1
--- /dev/null Sun May 13 04:01:17 2007
+++ arch/build/base/fakeroot/fakeroot.install Sun May 13 04:01:16 2007
@@ -0,0 +1,28 @@
+# arg 1: the new package version
+post_install() {
+ if [ ! "`grep /usr/lib/libfakeroot etc/ld.so.conf`" ]; then
+ echo -n "updating /etc/ld.so.conf... "
+ echo "/usr/lib/libfakeroot" >>etc/ld.so.conf
+ sbin/ldconfig -r .
+ echo "done."
+ fi
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ echo -ne "\nupdating /etc/ld.so.conf... "
+ sed -i -e '/\/usr\/lib\/libfakeroot/d' etc/ld.so.conf
+ sbin/ldconfig -r .
+ echo "done."
+}
+
+op=$1
+shift
+
+$op $*
More information about the arch-commits
mailing list