wok-next annotate atril/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 94b1769614d9 |
children | d5aab818505e |
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@20942 | 16 djvulibre-dev webkit2gtk-dev itstool xorg-libSM-dev" |
al@20942 | 17 SPLIT="atril-caja atril-comics atril-djvu atril-epub atril-pdf atril-psd \ |
al@20942 | 18 atril-tiff atril atril-dev" |
al@20942 | 19 |
al@20942 | 20 case $ARCH in |
al@20942 | 21 x86_64) |
al@20942 | 22 BUILD_DEPENDS="${BUILD_DEPENDS/webkit2gtk-dev/}" |
al@20942 | 23 SPLIT="${SPLIT/atril-epub/}" |
al@20942 | 24 ;; |
al@20942 | 25 esac |
yuripourre@18493 | 26 |
al@20096 | 27 compile_rules() { |
al@20942 | 28 ./configure \ |
al@20942 | 29 --enable-pixbuf \ |
al@20942 | 30 --enable-comix \ |
al@20942 | 31 --disable-static \ |
yuripourre@18493 | 32 $CONFIGURE_ARGS && |
al@20942 | 33 fix libtool && |
yuripourre@18493 | 34 make && |
al@20942 | 35 make install || return 1 |
al@20942 | 36 |
al@20942 | 37 fix symlinks |
yuripourre@18493 | 38 } |
yuripourre@18493 | 39 |
al@20096 | 40 genpkg_rules() { |
al@20096 | 41 case $PACKAGE in |
al@20942 | 42 *-caja) |
al@20942 | 43 copy caja/extensions-2.0/*.so |
al@20942 | 44 CAT="office|Caja extension" |
al@21017 | 45 DEPENDS="atril caja glib gtk3" |
al@20942 | 46 ;; |
al@20096 | 47 *-comics) |
al@20096 | 48 copy comicsdocument.atril-backend libcomicsdocument.so |
al@20096 | 49 CAT="office|comix book backend" |
al@21017 | 50 DEPENDS="atril gdk-pixbuf glib gtk3" |
al@20096 | 51 ;; |
al@20096 | 52 *-djvu) |
al@20096 | 53 copy djvudocument.atril-backend libdjvudocument.so |
al@20096 | 54 CAT="office|DjVu backend" |
al@21017 | 55 DEPENDS="atril cairo djvulibre gdk-pixbuf glib gtk3" |
al@20096 | 56 ;; |
al@20096 | 57 *-epub) |
al@20096 | 58 copy epubdocument.atril-backend libepubdocument.so |
al@20096 | 59 CAT="office|ePub backend" |
al@20096 | 60 DEPENDS="atril" |
al@20096 | 61 ;; |
al@20096 | 62 *-pdf) |
al@20096 | 63 copy pdfdocument.atril-backend libpdfdocument.so |
al@20096 | 64 CAT="office|PDF backend" |
al@21017 | 65 DEPENDS="atril cairo gdk-pixbuf glib gtk3 libxml2 pango poppler" |
al@20096 | 66 ;; |
al@20096 | 67 *-psd) |
al@20096 | 68 copy psdocument.atril-backend libpsdocument.so |
al@20096 | 69 CAT="office|PSD backend" |
al@20942 | 70 DEPENDS="atril cairo glib libspectre" |
al@20096 | 71 ;; |
al@20096 | 72 *-tiff) |
al@20096 | 73 copy tiffdocument.atril-backend libtiffdocument.so |
al@20096 | 74 CAT="office|TIFF backend" |
al@20942 | 75 DEPENDS="atril cairo gdk-pixbuf glib tiff" |
al@20096 | 76 ;; |
al@20096 | 77 atril) |
al@20096 | 78 copy @std @rm |
al@21017 | 79 DEPENDS="atk cairo gdk-pixbuf glib gtk3 libsecret libxml2 pango \ |
al@20942 | 80 xorg-libICE xorg-libSM zlib" |
al@20096 | 81 TAGS="MATE pdf djvu" |
al@20096 | 82 ;; |
al@20096 | 83 *-dev) |
al@20096 | 84 copy @dev |
al@21017 | 85 DEPENDS="${SPLIT/$PACKAGE/} glib-dev gtk3-dev" |
al@20096 | 86 TAGS="MATE" |
al@20096 | 87 ;; |
al@20096 | 88 esac |
yuripourre@18493 | 89 } |