blob: 305421085c97c26a47e6dfd1a41450642a86875a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id: PKGBUILD 119840 2014-09-29 20:06:57Z flexiondotorg $
# Maintainer (Arch): Martin Wimpress <code@flexion.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=atril
pkgver=1.8.1
pkgrel=1.parabola1
pkgdesc="Simply a document viewer, with libarchive support"
url="http://mate-desktop.org"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
depends=('dconf' 'dbus' 'desktop-file-utils' 'gtk2' 'libsm' 'libspectre'
'mate-desktop' 'mate-icon-theme' 'poppler-glib' 'zlib' 'libsecret')
makedepends=('caja' 'djvulibre' 'gobject-introspection' 'libgxps' 'mate-common'
'perl-xml-parser' 'texlive-bin' 'yelp-tools')
optdepends=('caja: Document Properties extension'
'djvulibre: DjVu support'
'libgxps: XPS support'
'p7zip: cbz and cb7 compressed comic books'
'texlive-bin: DVI support'
'libarchive: cbr compressed comic books'
'yelp: for reading MATE help documents')
replaces=('mate-document-viewer' "$pkgname-libre")
provides=('mate-document-viewer')
conflicts=('mate-document-viewer' "$pkgname-libre")
options=('!emptydirs')
groups=('mate-extra')
source=("http://pub.mate-desktop.org/releases/1.8/${pkgname}-${pkgver}.tar.xz"
'libarchive.patch')
sha1sums=('2051be961a84d118ad0a278ec22bf48ca5d3fc35'
'e88168d61b18ce8e340ef3db9c6df6bb66c65d14')
install=${pkgname}.install
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i ../libarchive.patch
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/${pkgname} \
--with-gtk=2.0 \
--enable-gtk-doc \
--enable-djvu \
--enable-dvi \
--enable-t1lib \
--enable-pixbuf \
--enable-comics \
--enable-xps \
--enable-introspection \
--disable-static
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|