2018-08-17 10:40:24 +02:00
|
|
|
VERSION="R_2_2_6"
|
2018-01-22 17:07:04 +01:00
|
|
|
SRCDIR="libexpat-${VERSION}/expat"
|
|
|
|
TARBALL="${VERSION}.tar.gz"
|
|
|
|
URL="https://github.com/libexpat/libexpat/archive"
|
2018-08-17 10:40:24 +02:00
|
|
|
SHA256SUM="574499cba22a599393e28d99ecfa1e7fc85be7d6651d543045244d5b561cb7ff"
|
2019-02-27 14:22:03 +01:00
|
|
|
DEPENDS="libbsd-dev crt-dev"
|
|
|
|
SUBPKG="expat expat-dev"
|
2018-01-22 17:07:04 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
autoreconf --force --install --symlink
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1" --without-xmlwf --with-libbsd
|
2018-01-22 17:07:04 +01:00
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2018-01-22 17:07:04 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
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"
|
2019-03-06 10:03:12 +01:00
|
|
|
}
|