summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libcap/PKGBUILD
diff options
context:
space:
mode:
authorBob Igo <bob@stormlogic.com>2009-06-06 20:51:42 (GMT)
committerBob Igo <bob@stormlogic.com>2009-06-06 20:51:42 (GMT)
commit9c88cd43e4ac8a83bd5eb77616ba0d13f08a891a (patch)
tree8d92e12969a08ece07657486b877ad841fd31dcc /abs/core-testing/libcap/PKGBUILD
parent8dd571de2d83b945fef01103fbe8c241e774f0e3 (diff)
parentc13eeafc9aa43d7b2c4a457987409e9da03af481 (diff)
downloadlinhes_pkgbuild-9c88cd43e4ac8a83bd5eb77616ba0d13f08a891a.zip
linhes_pkgbuild-9c88cd43e4ac8a83bd5eb77616ba0d13f08a891a.tar.gz
linhes_pkgbuild-9c88cd43e4ac8a83bd5eb77616ba0d13f08a891a.tar.bz2
merge, plus some robustness options for install_db_chroot.sh
Diffstat (limited to 'abs/core-testing/libcap/PKGBUILD')
-rw-r--r--abs/core-testing/libcap/PKGBUILD28
1 files changed, 15 insertions, 13 deletions
diff --git a/abs/core-testing/libcap/PKGBUILD b/abs/core-testing/libcap/PKGBUILD
index 8d09b19..a80dccf 100644
--- a/abs/core-testing/libcap/PKGBUILD
+++ b/abs/core-testing/libcap/PKGBUILD
@@ -1,20 +1,22 @@
-#$Id: PKGBUILD 8870 2008-08-16 22:39:56Z eric $
-# Maintainer: Arjan Timmerman <arjan@archlinux.org>
+#$Id: PKGBUILD 29964 2009-03-15 02:32:04Z hugo $
+# Maintainer: Hugo Doria <hugo@archlinux.org>
+
pkgname=libcap
-pkgver=1.10
-pkgrel=2
+pkgver=2.16
+pkgrel=3
pkgdesc="POSIX 1003.1e capabilities"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
url="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
-license="GPL"
+license=('GPL')
depends=('glibc')
-source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${pkgname}-${pkgver}.tar.gz
- libcap-1.10-debian.patch)
-md5sums=('2c09eea823f67cfdde96177a959bc39b' 'ba642c86c4072917fcff77ec31411194')
+source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${pkgname}-${pkgver}.tar.gz)
+md5sums=('9e075fda242c4070ba76407064c13302')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
- patch -Np1 -i ${startdir}/src/libcap-1.10-debian.patch || return 1
- make prefix=/usr DESTDIR=${startdir}/pkg install
- rmdir ${startdir}/pkg/usr/share/man/man2
+ cd ${srcdir}/${pkgname}-${pkgver}
+ sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)/\$(lib)|LIBDIR=\$(FAKEROOT)/\$(lib)|g" Make.Rules || return 1
+ make prefix=/usr DESTDIR=${pkgdir} install
+
+ rm ${pkgdir}/lib/*.a || return 1
+ chmod 755 ${pkgdir}/lib/libcap.so.* || return 1
}