wok view atril/receipt @ rev 25633

wbar: remove imlib2-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 24 10:30:04 2023 +0000 (5 months ago)
parents 73f36875e5a7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="atril"
4 VERSION="1.8.0"
5 CATEGORY="utilities"
6 LICENSE="GPL3"
7 SHORT_DESC="A document viewer for MATE. Based on evince"
8 MAINTAINER="yuripourre@gmail.com"
9 WEB_SITE="https://www.mate-desktop.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL"
13 TAGS="pdf djvu"
14 DEPENDS="gtk+ mate-desktop dconf libegl-mesa libsecret poppler \
15 desktop-file-utils djvulibre zlib"
16 SUGGESTED="libspectre mate-icon-theme"
17 BUILD_DEPENDS="wget autoconf automake libtool itstool yelp-tools \
18 gtk+-dev gtk-doc mate-desktop-dev mate-common-dev mate-icon-theme \
19 libsecret-dev caja-dev poppler-dev util-linux-uuid-dev lcms-dev \
20 libgcrypt-dev djvulibre-dev"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
26 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./autogen.sh \
33 --prefix=/usr \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/share $fs/usr
46 cp -a $install/usr/libexec $fs/usr
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/atril $fs/usr/lib
49 cp -a $install/usr/lib/caja $fs/usr/lib
50 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
51 # Saving some space
52 rm -r $fs/usr/share/man $fs/usr/share/help
53 rm -r $fs/usr/lib/atril/3/backends/lib*a
54 rm -r $fs/usr/lib/caja/extensions-2.0/libatril*a
55 rm -rf $fs/usr/lib/pkgconfig
56 }