# SliTaz package receipt. PACKAGE="expat" VERSION="2.5.0" CATEGORY="x-window" SHORT_DESC="XML parsing C library." MAINTAINER="pankso@slitaz.org" LICENSE="MIT" WEB_SITE="https://libexpat.github.io/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/libexpat/libexpat/releases/download/R_${VERSION//./_}/$TARBALL" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/Changes">/!d;s|.*Expat ||;s|||g;q' } # Rules to configure and make the package. compile_rules() { ./configure $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_files *.so* # expat so.0 symbolic link. cd $fs/usr/lib ln -s libexpat.so.1.*.* libexpat.so.0 }