mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
David Oberhollenzer
55463cf428
- crt-dev is a dependency of toolchain - basefiles is a dependency of toolchain - libstdc++ is (now also) a dependency of toolchain This commit removes direct build dependencies to the above and replacest them with dependencies to the toolchain package. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
27 lines
741 B
Text
27 lines
741 B
Text
VERSION="0.9.0"
|
|
SRCDIR="nftables-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.bz2"
|
|
URL="https://netfilter.org/projects/nftables/files"
|
|
SHA256SUM="ad8181b5fcb9ca572f444bed54018749588522ee97e4c21922648bb78d7e7e91"
|
|
DEPENDS="libmnl-dev libnftnl-dev gmp-dev readline-dev ncurses-dev toolchain"
|
|
SUBPKG="nftables nftables-dev"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
run_configure "$1" --disable-debug --disable-man-doc --without-mini-gmp
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "$URL" | grep -o ">nftables-[0-9.]*tar.bz2<" | \
|
|
sed 's/>nftables-//g' | sed 's/.tar.bz2<//g' | grep -v 0.099 |\
|
|
verson_find_greatest "$VERSION"
|
|
}
|