wok annotate atril/receipt @ rev 19269

Compress manpages.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 04 14:47:05 2016 +0300 (2016-07-04)
parents d5f9f516b706
children e481e85001c2
rev   line source
yuripourre@18493 1 # SliTaz package receipt.
yuripourre@18493 2
yuripourre@18493 3 PACKAGE="atril"
yuripourre@18493 4 VERSION="1.8.0"
yuripourre@18493 5 CATEGORY="utilities"
yuripourre@18493 6 LICENSE="GPL3"
yuripourre@18493 7 SHORT_DESC="A document viewer for MATE."
yuripourre@18493 8 MAINTAINER="yuripourre@gmail.com"
yuripourre@18493 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
yuripourre@18493 10 WEB_SITE="http://www.mate-desktop.org/"
yuripourre@18493 11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL"
yuripourre@18493 12
yuripourre@18493 13 DEPENDS="gtk+ mate-desktop libsecret poppler mate-icon-theme \
yuripourre@18495 14 desktop-file-utils djvulibre libspectre zlib"
yuripourre@18506 15 BUILD_DEPENDS="wget autoconf automake libtool itstool yelp-tools \
yuripourre@18493 16 gtk+-dev gtk-doc mate-desktop-dev mate-common-dev mate-icon-theme \
yuripourre@18493 17 libsecret-dev caja-dev poppler-dev util-linux-uuid-dev lcms-dev \
yuripourre@18495 18 libgcrypt-dev djvulibre-dev"
yuripourre@18493 19
yuripourre@18493 20 # Rules to configure and make the package.
yuripourre@18493 21 compile_rules()
yuripourre@18493 22 {
al@19269 23 ./autogen.sh \
al@19269 24 --prefix=/usr \
yuripourre@18493 25 $CONFIGURE_ARGS &&
yuripourre@18493 26 make &&
yuripourre@18493 27 make DESTDIR=$DESTDIR install
al@19269 28
al@19269 29 mkdir -p $install/usr/share/man/man1
al@19269 30 cp $src/data/atril.1 $install/usr/share/man/man1
al@19269 31 cook_compress_manpages
yuripourre@18493 32 }
yuripourre@18493 33
yuripourre@18493 34 # Rules to gen a SliTaz package suitable for Tazpkg.
yuripourre@18493 35 genpkg_rules()
yuripourre@18493 36 {
yuripourre@18493 37 # Saving some space
yuripourre@18493 38 rm -rf $install/usr/share/man
yuripourre@18493 39 rm -rf $install/usr/share/help
yuripourre@18493 40 mkdir -p $fs/usr/lib
yuripourre@18493 41
yuripourre@18493 42 cp -a $install/usr/bin $fs/usr
yuripourre@18493 43 cp -a $install/usr/share $fs/usr
yuripourre@18493 44 cp -a $install/usr/libexec $fs/usr
yuripourre@18493 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
yuripourre@18493 46 cp -a $install/usr/lib/atril $fs/usr/lib
yuripourre@18493 47 cp -a $install/usr/lib/caja $fs/usr/lib
yuripourre@18494 48 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
yuripourre@18493 49 }
yuripourre@18493 50
yuripourre@18493 51 post_remove()
yuripourre@18493 52 {
al@18667 53 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
yuripourre@18493 54 }