wok-next annotate atril/receipt @ rev 21080

Update tiff (4.0.10): libs -> into libtiff, apps -> into tiff
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 24 02:07:02 2018 +0200 (2018-12-24)
parents 5669e8b3be70
children 6f5739796e82
rev   line source
al@20096 1 # SliTaz package receipt v2.
yuripourre@18493 2
yuripourre@18493 3 PACKAGE="atril"
al@20942 4 VERSION="1.20.2"
al@20096 5 CATEGORY="office"
al@20096 6 SHORT_DESC="A document viewer for MATE"
yuripourre@18493 7 MAINTAINER="yuripourre@gmail.com"
al@20096 8 LICENSE="GPL2"
al@20096 9 WEB_SITE="https://github.com/mate-desktop/atril"
al@20096 10
al@20942 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20942 12 WGET_URL="http://pub.mate-desktop.org/releases/${VERSION%.*}/$TARBALL"
yuripourre@18493 13
al@21017 14 BUILD_DEPENDS="mate-common yelp-tools-dev gtk-doc gtk3-dev libsecret-dev \
al@20942 15 caja-dev gobject-introspection-dev poppler-dev libspectre-dev tiff-dev \
al@21078 16 djvulibre-dev webkit2gtk-dev itstool libsm-dev"
al@21020 17 SPLIT="\
al@21020 18 $PACKAGE-caja $PACKAGE-comics $PACKAGE-djvu $PACKAGE-epub $PACKAGE-pdf \
al@21020 19 $PACKAGE-psd $PACKAGE-tiff $PACKAGE $PACKAGE-dev"
al@20942 20
al@20942 21 case $ARCH in
al@20942 22 x86_64)
al@20942 23 BUILD_DEPENDS="${BUILD_DEPENDS/webkit2gtk-dev/}"
al@20942 24 SPLIT="${SPLIT/atril-epub/}"
al@20942 25 ;;
al@20942 26 esac
yuripourre@18493 27
al@20096 28 compile_rules() {
al@20942 29 ./configure \
al@20942 30 --enable-pixbuf \
al@20942 31 --enable-comix \
al@20942 32 --disable-static \
yuripourre@18493 33 $CONFIGURE_ARGS &&
al@20942 34 fix libtool &&
yuripourre@18493 35 make &&
al@20942 36 make install || return 1
al@20942 37
al@20942 38 fix symlinks
yuripourre@18493 39 }
yuripourre@18493 40
al@20096 41 genpkg_rules() {
al@20096 42 case $PACKAGE in
al@20942 43 *-caja)
al@20942 44 copy caja/extensions-2.0/*.so
al@20942 45 CAT="office|Caja extension"
al@21017 46 DEPENDS="atril caja glib gtk3"
al@20942 47 ;;
al@20096 48 *-comics)
al@20096 49 copy comicsdocument.atril-backend libcomicsdocument.so
al@20096 50 CAT="office|comix book backend"
al@21017 51 DEPENDS="atril gdk-pixbuf glib gtk3"
al@20096 52 ;;
al@20096 53 *-djvu)
al@20096 54 copy djvudocument.atril-backend libdjvudocument.so
al@20096 55 CAT="office|DjVu backend"
al@21017 56 DEPENDS="atril cairo djvulibre gdk-pixbuf glib gtk3"
al@20096 57 ;;
al@20096 58 *-epub)
al@20096 59 copy epubdocument.atril-backend libepubdocument.so
al@20096 60 CAT="office|ePub backend"
al@20096 61 DEPENDS="atril"
al@20096 62 ;;
al@20096 63 *-pdf)
al@20096 64 copy pdfdocument.atril-backend libpdfdocument.so
al@20096 65 CAT="office|PDF backend"
al@21017 66 DEPENDS="atril cairo gdk-pixbuf glib gtk3 libxml2 pango poppler"
al@20096 67 ;;
al@20096 68 *-psd)
al@20096 69 copy psdocument.atril-backend libpsdocument.so
al@20096 70 CAT="office|PSD backend"
al@20942 71 DEPENDS="atril cairo glib libspectre"
al@20096 72 ;;
al@20096 73 *-tiff)
al@20096 74 copy tiffdocument.atril-backend libtiffdocument.so
al@20096 75 CAT="office|TIFF backend"
al@21080 76 DEPENDS="atril cairo gdk-pixbuf glib libtiff"
al@20096 77 ;;
al@20096 78 atril)
al@20096 79 copy @std @rm
al@21017 80 DEPENDS="atk cairo gdk-pixbuf glib gtk3 libsecret libxml2 pango \
al@21078 81 libice libsm zlib"
al@20096 82 TAGS="MATE pdf djvu"
al@20096 83 ;;
al@20096 84 *-dev)
al@20096 85 copy @dev
al@21017 86 DEPENDS="${SPLIT/$PACKAGE/} glib-dev gtk3-dev"
al@20096 87 TAGS="MATE"
al@20096 88 ;;
al@20096 89 esac
yuripourre@18493 90 }