diff options
Diffstat (limited to 'repo/system/libnl/libnl.xibuild')
-rw-r--r-- | repo/system/libnl/libnl.xibuild | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/repo/system/libnl/libnl.xibuild b/repo/system/libnl/libnl.xibuild new file mode 100644 index 0000000..7ea18ba --- /dev/null +++ b/repo/system/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 +} |