summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-21 18:03:25 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-22 02:22:33 -0300
commit257161eef41c4d61aed8099fed05dc8f7e7eff55 (patch)
tree6347e2a0a22699d1c291f91295c10e70db9a7aac
parent018bdb53f407176b38b78188ac9b0b39935259fd (diff)
downloadabslibre-257161eef41c4d61aed8099fed05dc8f7e7eff55.tar.gz
abslibre-257161eef41c4d61aed8099fed05dc8f7e7eff55.tar.bz2
abslibre-257161eef41c4d61aed8099fed05dc8f7e7eff55.zip
libnl-static: add new package to [libre]
-rw-r--r--libre/libnl-static/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/libre/libnl-static/PKGBUILD b/libre/libnl-static/PKGBUILD
new file mode 100644
index 000000000..9b708731d
--- /dev/null
+++ b/libre/libnl-static/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of libnl
+
+_pkgname=libnl
+pkgname=libnl-static
+pkgver=3.2.27
+pkgrel=1
+pkgdesc="Library for applications dealing with netlink sockets (static libraries only)"
+arch=(i686 x86_64 armv7h)
+url="http://www.infradead.org/~tgr/libnl/"
+license=(GPL)
+depends=(libnl)
+options=('staticlibs')
+source=(https://github.com/thom311/libnl/releases/download/libnl${pkgver//./_}/${_pkgname}-${pkgver}.tar.gz{,.sig})
+sha256sums=('4bbbf92b3c78a90f423cf96260bf419a28b75db8cced47051217a56795f58ec6'
+ 'SKIP')
+validpgpkeys=('49EA7C670E0850E7419514F629C2366E4DFC5728') # Thomas Haller
+
+build() {
+ cd "$srcdir"/$_pkgname-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --enable-static
+ make
+}
+
+package() {
+ cd "$srcdir"/$_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # remove conflicting files
+ rm -vr ${pkgdir}/usr/{bin,etc,include,lib/pkgconfig,share}
+ rm -v ${pkgdir}/usr/lib/{,$_pkgname/cli/{cls,qdisc}/}*.so*
+}