#$Id: PKGBUILD 64614 2010-01-21 11:40:53Z allan $ # Maintainer: Hugo Doria <hugo@archlinux.org> pkgname=libcap pkgver=2.19 pkgrel=1 pkgdesc="POSIX 1003.1e capabilities" arch=('i686' 'x86_64') url="http://www.kernel.org/pub/linux/libs/security/linux-privs/" license=('GPL') depends=('glibc' 'attr') source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${pkgname}-${pkgver}.tar.gz) md5sums=('9caa6dafc9e3db4cbaecdb8e48f23fa2') build() { 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.${pkgver} || return 1 }