# SliTaz package receipt. PACKAGE="diffpdf" HASH="b08ffc8a88426a1db4ff1d972011797732d149bc" VERSION="2.1.3" CATEGORY="utilities" SHORT_DESC="PDF files comparator." MAINTAINER="maintainer@slitaz.org" LICENSE="GPL2" WEB_SITE="https://gitlab.com/eang/diffpdf" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/-/archive/$HASH/diffpdf-$HASH.tar.gz" DEPENDS="poppler-qt4" BUILD_DEPENDS="poppler-qt4-dev qmake Qt4-dev" # What is the latest version available today? current_version() { wget -O - $WEB_SITE/-/tags 2>/dev/null | \ sed '/diffpdf-v/!d;s|.*/diffpdf-v\([\.0-9]*\)\..*|\1|;q' } # Rules to configure and make the package. compile_rules() { # export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11" # ./configure $CONFIGURE_ARGS && lrelease diffpdf.pro && qmake DESTDIR=$DESTDIR && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $install/diffpdf $fs/usr/bin }