1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 04:26:13 +02:00
build/pkg/libunistring/build
David Oberhollenzer a4a73b01e1 Bump libunistring version
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-06-19 22:56:06 +02:00

29 lines
597 B
Plaintext
Executable file

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