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