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

29 lines
588 B
Plaintext
Raw Normal View History

VERSION="2.0.5"
SRCDIR="libidn2-$VERSION"
TARBALL="${SRCDIR}.tar.gz"
URL="https://ftp.gnu.org/gnu/libidn"
SHA256SUM="53f69170886f1fa6fa5b332439c7a77a7d22626a82ef17e2c1224858bb4ca2b8"
DEPENDS="libiconv libunistring"
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 ">libidn2-[0-9.]*tar.gz<" | \
sed 's/>libidn2-//g' | sed 's/.tar.gz<//g' | \
verson_find_greatest "$VERSION"
}