2018-11-26 16:23:25 +01:00
|
|
|
VERSION="1.1.2"
|
2018-02-12 02:48:46 +01:00
|
|
|
SRCDIR="libnftnl-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.bz2"
|
|
|
|
URL="https://netfilter.org/projects/libnftnl/files"
|
2018-11-26 16:23:25 +01:00
|
|
|
SHA256SUM="a5c7b7a6c13c9c5898b13fcb1126fefce2015d5a96d7c354b19aaa40b6aece5d"
|
2019-02-27 14:22:03 +01:00
|
|
|
DEPENDS="libmnl-dev crt-dev"
|
|
|
|
SUBPKG="libnftnl libnftnl-dev"
|
2018-02-12 02:48:46 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1"
|
2018-02-12 02:48:46 +01:00
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2018-02-12 02:48:46 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">libnftnl-[0-9.]*tar.bz2<" | \
|
|
|
|
sed 's/>libnftnl-//g' | sed 's/.tar.bz2<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
2019-03-06 10:03:12 +01:00
|
|
|
}
|