summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}