diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 32 insertions, 19 deletions
@@ -1,36 +1,49 @@ -#$Id$ -# Maintainer: Yegor Alexeyev +# Maintainer: Vincent Grande <shoober420@gmail.com> +# Contributor: David Runge <dvzrv@archlinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> # Contributor: Allan McRae <allan@archlinux.org> # Contributor: Hugo Doria <hugo@archlinux.org> pkgname=libcap-git -_gitname=libcap -pkgver=2.25 +pkgver=2.46 pkgrel=1 pkgdesc='POSIX 1003.1e capabilities' -arch=('i686' 'x86_64') -url='http://sites.google.com/site/fullycapable/' +arch=('x86_64') +url="https://sites.google.com/site/fullycapable/" license=('GPL2') -depends=('glibc' 'attr') -provides=('libcap') +depends=('glibc' 'pam') makedepends=('linux-api-headers') -source=("$_gitname::git://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git") -md5sums=('SKIP') -conflicts=('libcap') +provides=('libcap.so' 'libpsx.so' 'libcap') +conflicts=(libcap) +source=("git+https://git.kernel.org/pub/scm/libs/libcap/libcap.git" + "libcap-2.45-makefile.patch" +) +sha512sums=('SKIP' + '4f613f83198dfccb8b79e1b2c8764657a85300cb166d633d86b87f46567d51fa9395387caf33e82a8718f19e9a1fc65c11e7b6f63c3c4cde1b2a27f70671ec07') +#validpgpkeys=(38A644698C69787344E954CE29EE848AE2CCF3F4) # Andrew G. Morgan <morgan@kernel.org> prepare() { - cd "$srcdir/$_gitname" - sed -i "/SBINDIR/s#sbin#bin#" Make.Rules + cd libcap + # SBINDIR is hardcoded to sbin. set to bin + # add CPPFLAGS + patch -Np1 -i ../"libcap-2.45-makefile.patch" } build() { - make -C $srcdir/$_gitname KERNEL_HEADERS=/usr/include + cd libcap + make KERNEL_HEADERS='/usr/include' lib='lib' prefix='/usr' } -package() { - cd "$srcdir/$_gitname" - make prefix=/usr lib=/lib DESTDIR="$pkgdir" RAISE_SETFCAP=no install +#check() { +# cd libcap +# make test +#} - install -Dm644 pam_cap/capability.conf \ - "$pkgdir"/usr/share/doc/$pkgname/capability.conf.example +package() { + cd libcap + make DESTDIR="$pkgdir" RAISE_SETFCAP='no' lib='lib' prefix='/usr' install + # docs + install -vDm 644 {CHANGELOG,README} -t "${pkgdir}/usr/share/doc/libcap/" + install -vDm 644 pam_cap/capability.conf \ + -t "$pkgdir/usr/share/doc/libcap/examples/" } |