#$Id: PKGBUILD 8870 2008-08-16 22:39:56Z eric $
# Maintainer: Arjan Timmerman <arjan@archlinux.org>
pkgname=libcap
pkgver=1.10
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')
source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${pkgname}-${pkgver}.tar.gz
	libcap-1.10-debian.patch)
md5sums=('2c09eea823f67cfdde96177a959bc39b' 'ba642c86c4072917fcff77ec31411194')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  patch -Np1 -i ${startdir}/src/libcap-1.10-debian.patch || return 1
  make prefix=/usr DESTDIR=${startdir}/pkg install
  rmdir ${startdir}/pkg/usr/share/man/man2
}