aboutsummaryrefslogtreecommitdiffstats
path: root/community/diff-pdf/APKBUILD
blob: 4cb28f10b81a359aed369ae926832aa8321500d4 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# TODO: Try to build it without GUI.
pkgname=diff-pdf
pkgver=0.2_git20170816
_gitrev=48416f3ed9085db77cce22f836ef4456bbaacccc
pkgrel=0
pkgdesc="A simple tool for visually comparing two PDF files"
url="https://vslavik.github.io/diff-pdf/"
arch="all"
license="GPL2"
makedepends="autoconf automake cairo-dev poppler-dev wxgtk-dev"
source="$pkgname-$_gitrev.tar.gz::https://github.com/vslavik/$pkgname/archive/$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"

prepare() {
	cd "$builddir"
	./bootstrap
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-silent-rules \
		&& make
}

check() {
	cd "$builddir"
	./diff-pdf --help >/dev/null
}

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

sha512sums="9197e84e5699bbee00b469ee1566481edce931c95e4a68a36bd53ce1e34b5162bcef3e0ed0e6a1dacea820c09de2fa5fbda80aa5a48ef04239023d7f450c2748  diff-pdf-48416f3ed9085db77cce22f836ef4456bbaacccc.tar.gz"