summaryrefslogtreecommitdiff
path: root/distro/archlinux/PKGBUILD
blob: 36364413a13dbce4fb337791581d313516b79216 (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
pkgname=mate-document-viewer
pkgver=1.4.0
pkgrel=1
pkgdesc="Simply a document viewer"
url="https://github.com/mate-desktop/mate-document-viewer"
arch=('i686' 'x86_64')
license=('GPL')
depends=('gtk2' 'libspectre' 'gsfonts' 'poppler-glib' 'libgxps' 'djvulibre'
         'mate-icon-theme' 't1lib' 'libmatekeyring' 'desktop-file-utils'
         'texlive-bin') #  'dconf' 'gsettings-desktop-schemas'
makedepends=('mate-doc-utils' 'mate-file-manager' 'intltool' 'gobject-introspection')
optdepends=('texlive-bin: DVI support')
groups=('mate-extra')
install=mate-document-viewer.install
options=('!libtool' '!emptydirs')
source=()
sha256sums=()

build() {
	cd "${srcdir}/../../../"

	./autogen.sh \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--libexecdir=/usr/lib/mate-document-viewer \
		--disable-static \
		--enable-caja \
		--enable-pdf \
		--enable-tiff \
		--enable-xps \
		--enable-djvu \
		--enable-dvi \
		--enable-t1lib \
		--enable-comics \
		--enable-pixbuf \
		--enable-impress \
		--disable-scrollkeeper \
		--enable-introspection \
		--disable-schemas-compile \
		--disable-schemas-install || return 1

	make || return 1
}

package() {
	cd "${srcdir}/../../../"
	make MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1

	ln -s atril ${pkgdir}/usr/bin/mate-document-viewer

	install -m755 -d "${pkgdir}/usr/share/mateconf/schemas"
	mateconf-merge-schema "${pkgdir}/usr/share/mateconf/schemas/${pkgname}.schemas" --domain ${pkgname} ${pkgdir}/etc/mateconf/schemas/*.schemas
	rm -f ${pkgdir}/etc/mateconf/schemas/*.schemas
}