summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/keyutils-static/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/libre/keyutils-static/PKGBUILD b/libre/keyutils-static/PKGBUILD
new file mode 100644
index 000000000..9a34d5a43
--- /dev/null
+++ b/libre/keyutils-static/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of keyutils
+
+_pkgname=keyutils
+pkgname=keyutils-static
+pkgver=1.5.9
+pkgrel=1
+pkgdesc="Linux Key Management Utilities (static libraries only)"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.kernel.org"
+license=('GPL2' 'LGPL2.1')
+depends=('keyutils')
+options=('staticlibs')
+source=(http://people.redhat.com/~dhowells/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2)
+md5sums=('7f8ac985c45086b5fbcd12cecd23cf07')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" LIBDIR='/usr/lib' USRLIBDIR='/usr/lib' install
+
+ # remove conflicting files
+ rm -vr ${pkgdir}/{{,s}bin,etc,usr/{include,share}}
+ rm -v ${pkgdir}/usr/lib/lib*.so*
+}