summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60782243c0b2213189e16fea04d216edaa30e32c (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
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >

pkgname=diff-pdf
pkgver=0.5
pkgrel=5
pkgdesc='A simple tool for visually comparing two PDF files'
arch=(x86_64)
url="http://vslavik.github.io/$pkgname"
_url="https://github.com/vslavik/$pkgname"
license=(GPL)
depends=(poppler-glib
         wxwidgets-gtk3)
_archive="$pkgname-$pkgver"
source=("$_url/releases/download/v$pkgver/$_archive.tar.gz")
sha256sums=('e7b8414ed68c838ddf6269d11abccdb1085d73aa08299c287a374d93041f172e')

prepare() {
	cd "$_archive"
	./bootstrap
	# Use /usr/share/aclocal/wxwin.m4 from wxwidgets-common
	rm -f admin/wxwin.m4
	cp /usr/share/aclocal/wxwin.m4 admin
}

build() {
	cd "$_archive"
	./configure --prefix /usr \
		--with-wx-config=wx-config
	make
}

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