updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / diff-pdf / PKGBUILD
blobad4866af8e881cb1791320086a3a4b360d04a9a3
1 # Maintainer: Mathieu Clabaut <mathieu.clabaut@gmail.com>
3 pkgname=diff-pdf
4 pkgver=20110624
5 pkgrel=1
6 pkgdesc="Tool for visually comparing two PDF files"
7 url="https://github.com/vslavik/diff-pdf"
8 license=('GPL')
9 arch=(i686 x86_64)
11 depends=(poppler-qt)
12 source=()
13 md5sums=()
15 _gitroot=https://github.com/vslavik/diff-pdf.git
16 _gitname=diff-pdf
18 build () {
19    cd "$srcdir"
20    if [ -d $_gitname ]; then
21          (cd $_gitname && git reset HEAD --hard && git clean -x -d -f && git pull origin)
22          msg "Updated the local files."
23    else
24          git clone $_gitroot
25          msg "GIT checkout done or server timeout"
26    fi
28    cd $_gitname
29    ./bootstrap
30    ./configure
31    make || return 1
34 package() {
35     cd "$srcdir"/$_gitname
36     make DESTDIR="$pkgdir" install || return 1