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