1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-14 23:47:11 +01:00
build/pkg/expat/build
David Oberhollenzer fa4eff263b Cleanup: implement defaults for package functions
This commit adds an "emptypackage" template that implements defaults
for all package functions and is included before every package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 15:16:58 +02:00

26 lines
746 B
Text

VERSION="2.2.9"
SRCDIR="expat-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://github.com/libexpat/libexpat/releases/download/R_2_2_9"
SHA256SUM="1ea6965b15c2106b6bbe883397271c80dfa0331cdf821b2c319591b55eadc0a4"
DEPENDS="libbsd-dev toolchain"
SUBPKG="expat expat-dev"
build() {
run_configure "$1" --without-xmlwf --with-libbsd
make -j $NUMJOBS
}
deploy() {
make DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
}
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"
}