APKBUILD 1.17 KB
Newer Older
Alan Lacerda's avatar
Alan Lacerda committed
1 2 3
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=atril
4
pkgver=1.19.3
5
pkgrel=0
Alan Lacerda's avatar
Alan Lacerda committed
6 7 8
pkgdesc="A document viewer for MATE"
url="https://github.com/mate-desktop/atril"
arch="all"
9
license="GPL-2.0"
Alan Lacerda's avatar
Alan Lacerda committed
10
depends="mate-icon-theme abiword-plugin-epub"
11 12 13
# make check is broken: https://github.com/mate-desktop/atril/issues/167
options="!check"
makedepends="intltool glib-dev gtk+3.0-dev  mate-desktop-dev
Natanael Copa's avatar
Natanael Copa committed
14
	dconf-dev libsm-dev libsecret-dev caja-extensions-dev caja-dev
15
	poppler-dev tiff-dev itstool libxml2-utils libxml2-dev python2-dev"
Alan Lacerda's avatar
Alan Lacerda committed
16
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
Natanael Copa's avatar
Natanael Copa committed
17
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
Alan Lacerda's avatar
Alan Lacerda committed
18

19
builddir="$srcdir/$pkgname-$pkgver"
Alan Lacerda's avatar
Alan Lacerda committed
20 21

build() {
22
	cd "$builddir"
Alan Lacerda's avatar
Alan Lacerda committed
23
	./configure \
24 25 26
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
Alan Lacerda's avatar
Alan Lacerda committed
27
		--enable-epub \
28 29 30 31 32 33 34 35
		--with-gtk=3.0 \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
Alan Lacerda's avatar
Alan Lacerda committed
36 37 38
}

package() {
39 40
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
Alan Lacerda's avatar
Alan Lacerda committed
41 42
}

43
sha512sums="5b873cb19e754e02da9cf63a5a4bd47fa7bdf77ccfa2312dd4242a51b960f7539a5429207a83134a7e8bdd88ac0b29184631cd27824c5b1974b552b893610332  atril-1.19.3.tar.xz"