lib32/lib32-libcap/PKGBUILD
Samir 850fefed49 added $_pkgbasename=$pkgver to most packages
This has been scripted, some might have been missed some PKGBUILDS
might be broken, so please chock when building.
2012-10-31 14:53:16 +00:00

30 lines
986 B
Bash

# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=libcap
pkgname=lib32-$_pkgbasename
pkgver=2.22
pkgrel=1
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=$pkgver)
makedepends=('gcc-multilib')
#source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${_pkgbasename}-${pkgver}.tar.gz)
source=(ftp://ftp.archlinux.org/other/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
md5sums=('b4896816b626bea445f0b3849bdd4077')
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"
}