diff options
Diffstat (limited to 'multilib/lib32-libcap/PKGBUILD')
-rw-r--r-- | multilib/lib32-libcap/PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/multilib/lib32-libcap/PKGBUILD b/multilib/lib32-libcap/PKGBUILD new file mode 100644 index 000000000..465de6153 --- /dev/null +++ b/multilib/lib32-libcap/PKGBUILD @@ -0,0 +1,26 @@ +#$Id: PKGBUILD 64614 2010-01-21 11:40:53Z allan $ +# Maintainer: Hugo Doria <hugo@archlinux.org> + +_pkgbasename=libcap +pkgname=lib32-$_pkgbasename +pkgver=2.19 +pkgrel=4 +pkgdesc="POSIX 1003.1e capabilities (32-bit)" +arch=(x86_64) +url="http://www.kernel.org/pub/linux/libs/security/linux-privs/" +license=('GPL') +depends=('lib32-attr' $_pkgbasename) +makedepends=('gcc-multilib') +source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${_pkgbasename}-${pkgver}.tar.gz) +md5sums=('9caa6dafc9e3db4cbaecdb8e48f23fa2') + +build() { + cd ${srcdir}/${_pkgbasename}-${pkgver} + + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + make -C libcap CC="gcc -m32" prefix=/usr lib=lib32 DESTDIR=${pkgdir} install + chmod 755 ${pkgdir}/usr/lib32/libcap.so.${pkgver} + + rm -rf "${pkgdir}/usr/include" +} |