[arch-commits] Commit in libcap/trunk (PKGBUILD)
Stéphane Gaudreault
stephane at archlinux.org
Wed Dec 22 22:24:33 UTC 2010
Date: Wednesday, December 22, 2010 @ 17:24:33
Author: stephane
Revision: 103773
upgpkg: libcap 2.19-2
Tidy up PKGBUILD, Rebuild of old package
Modified:
libcap/trunk/PKGBUILD
----------+
PKGBUILD | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-12-22 21:16:15 UTC (rev 103772)
+++ PKGBUILD 2010-12-22 22:24:33 UTC (rev 103773)
@@ -3,7 +3,7 @@
pkgname=libcap
pkgver=2.19
-pkgrel=1
+pkgrel=2
pkgdesc="POSIX 1003.1e capabilities"
arch=('i686' 'x86_64')
url="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
@@ -13,10 +13,14 @@
md5sums=('9caa6dafc9e3db4cbaecdb8e48f23fa2')
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)/\$(lib)|LIBDIR=\$(FAKEROOT)/\$(lib)|g" Make.Rules || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)/\$(lib)|LIBDIR=\$(FAKEROOT)/\$(lib)|g" Make.Rules
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
make prefix=/usr DESTDIR=${pkgdir} install
-
- rm ${pkgdir}/lib/*.a || return 1
- chmod 755 ${pkgdir}/lib/libcap.so.${pkgver} || return 1
+ rm ${pkgdir}/lib/*.a
+ chmod 755 ${pkgdir}/lib/libcap.so.${pkgver}
}
More information about the arch-commits
mailing list