mirror of
https://github.com/pygos/build.git
synced 2024-11-22 19:19:46 +01:00
30 lines
795 B
Text
30 lines
795 B
Text
VERSION="R_2_2_7"
|
|
SRCDIR="libexpat-${VERSION}/expat"
|
|
TARBALL="${VERSION}.tar.gz"
|
|
URL="https://github.com/libexpat/libexpat/archive"
|
|
SHA256SUM="4efe89dfd8c2f9b971bf9089efa4cc163ac997a75da92c08be14d80a091474e6"
|
|
DEPENDS="libbsd-dev toolchain"
|
|
SUBPKG="expat expat-dev"
|
|
|
|
prepare() {
|
|
autoreconf --force --install --symlink
|
|
}
|
|
|
|
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"
|
|
}
|