summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ccd8d2f05759413a04d76393a3c858c06631befd (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
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: aksr <aksr at t-com dot me>
# Contributor: xduugu

pkgname=diff-pdf-git
pkgver=0.5.1.r0.g150de72
pkgrel=1
pkgdesc='A simple tool for visually comparing two PDF files'
arch=(x86_64 i686)
url="http://vslavik.github.io/${pkgname%-git}"
_url="https://github.com/vslavik/${pkgname%-git}"
license=(GPL)
depends=(poppler-glib
         wxwidgets-gtk3)
makedepends=(git)
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
source=("git+$_url.git")
md5sums=('SKIP')

prepare() {
	cd "${pkgname%-git}"
	./bootstrap
}

pkgver() {
	cd "${pkgname%-git}"
	git describe --long --tags --abbrev=7 --match="v*" HEAD |
		sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

package() {
	cd "${pkgname%-git}"
	make DESTDIR="$pkgdir" install
}