wok-6.x rev 18493
Add atril
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Sun Oct 11 00:10:26 2015 -0300 (2015-10-11) |
parents | bf81f3a4045d |
children | 0aa574612499 |
files | atril-dev/receipt atril/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/atril-dev/receipt Sun Oct 11 00:10:26 2015 -0300 1.3 @@ -0,0 +1,20 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="atril-dev" 1.7 +VERSION="1.8.0" 1.8 +CATEGORY="libdevel" 1.9 +LICENSE="GPL3" 1.10 +SHORT_DESC="A document viewer for MATE." 1.11 +MAINTAINER="yuripourre@gmail.com" 1.12 +WEB_SITE="http://www.mate-desktop.org/" 1.13 +WANTED="atril" 1.14 +DEPENDS="atril" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/lib $fs/usr/include 1.20 + cp -a $install/usr/lib/*.la $fs/usr/lib 1.21 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.22 + cp -a $install/usr/include/* $fs/usr/include 1.23 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/atril/receipt Sun Oct 11 00:10:26 2015 -0300 2.3 @@ -0,0 +1,57 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="atril" 2.7 +VERSION="1.8.0" 2.8 +CATEGORY="utilities" 2.9 +LICENSE="GPL3" 2.10 +SHORT_DESC="A document viewer for MATE." 2.11 +MAINTAINER="yuripourre@gmail.com" 2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.13 +WEB_SITE="http://www.mate-desktop.org/" 2.14 +WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL" 2.15 + 2.16 +DEPENDS="gtk+ mate-desktop libsecret poppler mate-icon-theme \ 2.17 +desktop-file-utils libspectre zlib" 2.18 +BUILD_DEPENDS="wget autoconf automake libtool itstool yelp-tools \ 2.19 +gtk+-dev gtk-doc mate-desktop-dev mate-common-dev mate-icon-theme \ 2.20 +libsecret-dev caja-dev poppler-dev util-linux-uuid-dev lcms-dev \ 2.21 +libgcrypt-dev" 2.22 + 2.23 +# Rules to configure and make the package. 2.24 +compile_rules() 2.25 +{ 2.26 + ./autogen.sh \ 2.27 + --prefix=/usr \ 2.28 + $CONFIGURE_ARGS && 2.29 + make && 2.30 + make DESTDIR=$DESTDIR install 2.31 +} 2.32 + 2.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.34 +genpkg_rules() 2.35 +{ 2.36 + # Saving some space 2.37 + rm -rf $install/usr/share/man 2.38 + rm -rf $install/usr/share/help 2.39 + mkdir -p $fs/usr/lib 2.40 + 2.41 + cp -a $install/usr/bin $fs/usr 2.42 + cp -a $install/usr/share $fs/usr 2.43 + cp -a $install/usr/libexec $fs/usr 2.44 + cp -a $install/usr/lib/*.so* $fs/usr/lib 2.45 + cp -a $install/usr/lib/atril $fs/usr/lib 2.46 + cp -a $install/usr/lib/caja $fs/usr/lib 2.47 + cp -a $install/usr/lib/pkg-config $fs/usr/lib 2.48 +} 2.49 + 2.50 +post_install() 2.51 +{ 2.52 + echo "Processing post-install commands..." 2.53 + chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas 2.54 +} 2.55 + 2.56 +post_remove() 2.57 +{ 2.58 + echo "Processing post-remove commands..." 2.59 + chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas 2.60 +}