1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-16 16:48:43 +02:00
build/pkg/nettle/build

29 lines
568 B
Plaintext
Raw Normal View History

VERSION="3.4"
SRCDIR="nettle-${VERSION}"
TARBALL="${SRCDIR}.tar.gz"
URL="https://ftp.gnu.org/gnu/nettle/"
SHA256SUM="ae7a42df026550b85daca8389b6a60ba6313b0567f374392e54918588a411e94"
DEPENDS="gmp"
prepare() {
return
}
build() {
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install
}
check_update() {
curl --silent -L "$URL" | grep -o ">nettle-[0-9.]*tar.gz<" | \
sed 's/>nettle-//g' | sed 's/.tar.gz<//g' | \
verson_find_greatest "$VERSION"
}