summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/libcap/PKGBUILD
blob: a80dccff20d2f2f01438e0ccf59891b8c78d5e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#$Id: PKGBUILD 29964 2009-03-15 02:32:04Z hugo $
# Maintainer: Hugo Doria <hugo@archlinux.org>

pkgname=libcap
pkgver=2.16
pkgrel=3
pkgdesc="POSIX 1003.1e capabilities"
arch=('i686' 'x86_64')
url="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
license=('GPL')
depends=('glibc')
source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${pkgname}-${pkgver}.tar.gz)
md5sums=('9e075fda242c4070ba76407064c13302')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)/\$(lib)|LIBDIR=\$(FAKEROOT)/\$(lib)|g" Make.Rules || return 1
  make prefix=/usr DESTDIR=${pkgdir} install

  rm ${pkgdir}/lib/*.a || return 1
  chmod 755 ${pkgdir}/lib/libcap.so.* || return 1
}