aboutsummaryrefslogtreecommitdiffstats
path: root/community/atril/APKBUILD
blob: aad20f8751dac4b1422b6f7afe3394b7ef8eed63 (plain) (blame)
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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=atril
pkgver=1.21.1
pkgrel=2
pkgdesc="A document viewer for MATE"
url="https://github.com/mate-desktop/atril"
arch="all"
license="GPL-2.0-or-later"
depends="mate-icon-theme"
# 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
	dconf-dev libsm-dev libsecret-dev caja-extensions-dev caja-dev
	poppler-dev tiff-dev itstool libxml2-utils libxml2-dev python2-dev
	libspectre-dev webkit2gtk-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--with-gtk=3.0 \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="aad77b3c3089c8732dd75f9b99b28d24cc75959bf49b1b21e8eeb150500d5a1ba98149657ddf1c55de658ca5d8cec1269352a59afda4697b4f7715108bd95fac  atril-1.21.1.tar.xz"