2018-01-22 17:07:04 +01:00
|
|
|
VERSION="R_2_2_5"
|
|
|
|
SRCDIR="libexpat-${VERSION}/expat"
|
|
|
|
TARBALL="${VERSION}.tar.gz"
|
|
|
|
URL="https://github.com/libexpat/libexpat/archive"
|
|
|
|
SHA256SUM="b3781742738611eaa737543ee94264dd511c52a3ba7e53111f7d705f6bff65a8"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="libbsd"
|
2018-01-22 17:07:04 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
autoreconf --force --install --symlink
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
|
|
|
--without-xmlwf --with-libbsd
|
2018-01-22 17:07:04 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2018-01-22 17:07:04 +01:00
|
|
|
|
2018-06-17 16:08:11 +02:00
|
|
|
make DESTDIR="$DEPLOY" install
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
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"
|
|
|
|
}
|