wok-next view atril/receipt @ rev 21312

inkscape: added build dependency dbus-glib-dev
author Hans-G?nter Theisgen
date Tue Dec 10 15:00:13 2019 +0100 (2019-12-10)
parents 6f5739796e82
children
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 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 libcairo 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 libcairo gdk-pixbuf glib gtk3 libxml2 pango libpoppler"
67 ;;
68 *-psd)
69 copy psdocument.atril-backend libpsdocument.so
70 CAT="office|PSD backend"
71 DEPENDS="atril libcairo glib libspectre"
72 ;;
73 *-tiff)
74 copy tiffdocument.atril-backend libtiffdocument.so
75 CAT="office|TIFF backend"
76 DEPENDS="atril libcairo gdk-pixbuf glib libtiff"
77 ;;
78 atril)
79 copy @std @rm
80 DEPENDS="atk libcairo gdk-pixbuf glib gtk3 libsecret libxml2 pango \
81 libice 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 }