mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
23 lines
755 B
Bash
23 lines
755 B
Bash
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
|
|
# Modified by OpenPogo
|
|
# Confusing location of the libs due to sed line. Might not work?
|
|
|
|
pkgname=libcap
|
|
pkgver=2.16
|
|
pkgrel=1
|
|
pkgdesc="POSIX 1003.1e capabilities"
|
|
arch=(arm)
|
|
url="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
|
|
license=('GPL')
|
|
depends=()
|
|
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)\opt/\lib|LIBDIR=\$(FAKEROOT)/\opt/lib|g" Make.Rules || return 1
|
|
make prefix=/opt DESTDIR=${pkgdir} install
|
|
|
|
rm ${pkgdir}/opt/lib/*.a || return 1
|
|
chmod 755 ${pkgdir}/opt/lib/libcap.so.* || return 1
|
|
}
|