diff options
author | Andrew Sun | 2018-04-10 16:06:36 -0400 |
---|---|---|
committer | Andrew Sun | 2018-04-10 16:06:36 -0400 |
commit | b4b9f97e91245b8cadef1bf48906eb07ad0d3428 (patch) | |
tree | 2978ec45482ad0d2fbedefbcced7f094f2d58e6a | |
download | aur-b4b9f97e91245b8cadef1bf48906eb07ad0d3428.tar.gz |
add lib32-libcap-ng (version 0.7.9)
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1f4270e86d0d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = lib32-libcap-ng + pkgdesc = Library making programming with POSIX capabilities easier than traditional libcap + pkgver = 0.7.9 + pkgrel = 1 + url = http://people.redhat.com/sgrubb/libcap-ng/ + arch = x86_64 + license = LGPL2.1 + depends = lib32-glibc + depends = lib32-gcc-libs + source = libcap-ng-0.7.9.tar.gz::https://github.com/stevegrubb/libcap-ng/archive/v0.7.9.tar.gz + sha512sums = eae256b57af37c1170ee372ab9a6af927826a7b7b92f00c68010afbb32893fc265414ecf28f52e912a41609b4ca5e1295363db88dac9c60ea04bd20a1dfeef83 + +pkgname = lib32-libcap-ng + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e418395ceac3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Andrew Sun <adsun701@gmail.com> + +pkgname=lib32-libcap-ng +_pkgbasename=libcap-ng +pkgver=0.7.9 +pkgrel=1 +pkgdesc='Library making programming with POSIX capabilities easier than traditional libcap' +url='http://people.redhat.com/sgrubb/libcap-ng/' +arch=('x86_64') +license=('LGPL2.1') +depends=('lib32-glibc' 'lib32-gcc-libs') +source=(${_pkgbasename}-${pkgver}.tar.gz::https://github.com/stevegrubb/libcap-ng/archive/v${pkgver}.tar.gz) +sha512sums=('eae256b57af37c1170ee372ab9a6af927826a7b7b92f00c68010afbb32893fc265414ecf28f52e912a41609b4ca5e1295363db88dac9c60ea04bd20a1dfeef83') + +prepare() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + autoreconf -fiv +} + +build() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + export LDFLAGS+=' -m32' + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib32 \ + --enable-static=no \ + --without-python \ + --without-python3 + make +} + +check() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + make check +} + +package() { + cd "${srcdir}/${_pkgbasename}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/{bin,include,share} +} + |