1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-02 18:28:44 +02:00
build/pkg/expat/build
David Oberhollenzer b31bd42a93 Bump libexpat version
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-08-18 17:59:25 +02:00

34 lines
836 B
Plaintext

VERSION="R_2_2_6"
SRCDIR="libexpat-${VERSION}/expat"
TARBALL="${VERSION}.tar.gz"
URL="https://github.com/libexpat/libexpat/archive"
SHA256SUM="574499cba22a599393e28d99ecfa1e7fc85be7d6651d543045244d5b561cb7ff"
DEPENDS="libbsd"
prepare() {
autoreconf --force --install --symlink
}
build() {
$1/configure --prefix="" --host="$TARGET" --disable-static \
--without-xmlwf --with-libbsd
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
}
check_update() {
local version=$(echo "$VERSION" | sed 's/R_//g' | sed 's/_/./g')
curl --silent -L "https://github.com/libexpat/libexpat/releases" | \
grep -o "expat-[0-9.]*tar.bz2" | \
sed 's/expat-//g' | sed 's/.tar.bz2//g' | \
verson_find_greatest "$version"
}