# SliTaz package receipt. PACKAGE="atril" VERSION="1.8.0" CATEGORY="utilities" LICENSE="GPL3" SHORT_DESC="A document viewer for MATE. Based on evince" MAINTAINER="yuripourre@gmail.com" WEB_SITE="https://www.mate-desktop.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" TAGS="pdf djvu" DEPENDS="gtk+ mate-desktop dconf libegl-mesa libsecret poppler \ desktop-file-utils djvulibre zlib" SUGGESTED="libspectre mate-icon-theme" BUILD_DEPENDS="wget autoconf automake libtool itstool yelp-tools \ gtk+-dev gtk-doc mate-desktop-dev mate-common-dev mate-icon-theme \ libsecret-dev caja-dev poppler-dev util-linux-uuid-dev lcms-dev \ libgcrypt-dev djvulibre-dev" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh \ --prefix=/usr \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/share $fs/usr cp -a $install/usr/libexec $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/atril $fs/usr/lib cp -a $install/usr/lib/caja $fs/usr/lib cp -a $install/usr/lib/pkgconfig $fs/usr/lib # Saving some space rm -r $fs/usr/share/man $fs/usr/share/help rm -r $fs/usr/lib/atril/3/backends/lib*a rm -r $fs/usr/lib/caja/extensions-2.0/libatril*a rm -rf $fs/usr/lib/pkgconfig }