summaryrefslogtreecommitdiff
path: root/repo/libnl/libnl.xibuild
blob: 7ea18ba1f2a95b6d76ea4df4d1ddb520064440ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}