# HG changeset patch # User Yuri Pourre # Date 1444533026 10800 # Node ID 66a6ad14d957b390a4845df5d7cdcfb47df5b4e3 # Parent bf81f3a4045d38babf294331d96ed1e81a5b7a4c Add atril diff -r bf81f3a4045d -r 66a6ad14d957 atril-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/atril-dev/receipt Sun Oct 11 00:10:26 2015 -0300 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="atril-dev" +VERSION="1.8.0" +CATEGORY="libdevel" +LICENSE="GPL3" +SHORT_DESC="A document viewer for MATE." +MAINTAINER="yuripourre@gmail.com" +WEB_SITE="http://www.mate-desktop.org/" +WANTED="atril" +DEPENDS="atril" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs/usr/include + cp -a $install/usr/lib/*.la $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/include/* $fs/usr/include +} diff -r bf81f3a4045d -r 66a6ad14d957 atril/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/atril/receipt Sun Oct 11 00:10:26 2015 -0300 @@ -0,0 +1,57 @@ +# SliTaz package receipt. + +PACKAGE="atril" +VERSION="1.8.0" +CATEGORY="utilities" +LICENSE="GPL3" +SHORT_DESC="A document viewer for MATE." +MAINTAINER="yuripourre@gmail.com" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.mate-desktop.org/" +WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" + +DEPENDS="gtk+ mate-desktop libsecret poppler mate-icon-theme \ +desktop-file-utils libspectre zlib" +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" + +# 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() +{ + # Saving some space + rm -rf $install/usr/share/man + rm -rf $install/usr/share/help + 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/pkg-config $fs/usr/lib +} + +post_install() +{ + echo "Processing post-install commands..." + chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas +} + +post_remove() +{ + echo "Processing post-remove commands..." + chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas +}