# SliTaz package receipt. PACKAGE="pugixml" VERSION="1.12.1" CATEGORY="misc" SHORT_DESC="Light-weight, simple and fast XML parser for C++ with XPath support." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://pugixml.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/zeux/$PACKAGE/releases/download/v$VERSION/$TARBALL" SUGGESTED="cmake" BUILD_DEPENDS="cmake" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { mkdir _build && cd _build && cmake .. \ -D CMAKE_INSTALL_PREFIX=/usr && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs/ }