lib32/lib32-libcap/PKGBUILD

30 lines
986 B
Bash
Raw Normal View History

# 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
2012-07-30 03:24:56 +08:00
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')
2012-07-30 03:24:56 +08:00
#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"
}