core/libcap/PKGBUILD
2014-02-26 19:35:38 +00:00

36 lines
985 B
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname=libcap
pkgver=2.24
pkgrel=2
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=('ffb154f29b1d28466c6fe6add8286a2d')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
# disable static library
sed -i '/install.*STALIBNAME/ s/^/#/' libcap/Makefile
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
# libcap installs to /usr/lib64 by default, which is rather bad when everything looks for the .sos under /usr/lib
make prefix=/usr lib=/lib DESTDIR=${pkgdir} RAISE_SETFCAP=no install
install -Dm644 pam_cap/capability.conf \
$pkgdir/usr/share/doc/$pkgname/capability.conf.example
}