summaryrefslogtreecommitdiff
path: root/repo/libnl
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/libnl
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/libnl')
-rw-r--r--repo/libnl/libnl.xibuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/repo/libnl/libnl.xibuild b/repo/libnl/libnl.xibuild
new file mode 100644
index 0000000..7ea18ba
--- /dev/null
+++ b/repo/libnl/libnl.xibuild
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+MAKEDEPS="make tar gzip"
+DEPS="musl"
+
+PKG_VER=3.5.0
+SOURCE=https://github.com/thom311/libnl/releases/download/libnl$(echo $PKG_VER | sed 's/\./_/g')/libnl-$PKG_VER.tar.gz
+ADDITIONAL="
+ https://github.com/thom311/libnl/releases/download/libnl$(echo $PKG_VER | sed 's/\./_/g')/libnl-doc-$PKG_VER.tar.gz
+"
+
+DESC="Library for applications dealing with netlink sockets"
+
+build () {
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-static &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+
+ mkdir -p $PKG_DEST/usr/share/doc/libnl-$PKG_VER &&
+ /usr/bin/tar -xf libnl-doc-$PKG_VER.tar.gz --strip-components=1 --no-same-owner \
+ -C $PKG_DEST/usr/share/doc/libnl-$PKG_VER
+}