summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14d0c8c9aa7408ba2e2ce188d09b426ff8c162b0 (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
# Contributor: andreas_baumann <abamann@yahoo.com>
# Maintainer: Daniel YC Lin <dlin.tw at gmail>

pkgname=xxdiff-hg
pkgver=469.ae1e
pkgrel=1
pkgdesc="A graphical browser for file and directory differences."
#url="http://furius.ca/xxdiff"
url="https://bitbucket.org/blais/xxdiff"
license=('GPL2')
depends=('qt4')
#makedepends=('flex>=2.5.31' 'bison27' 'mercurial' 'python-docutils')
makedepends=('flex>=2.5.31' 'bison' 'mercurial' 'python-docutils')
arch=('x86_64' 'i686')
conflicts=('xxdiff')
provides=('xxdiff')
#source=('xxdiff::hg+https://hg.furius.ca/public/xxdiff')
source=('xxdiff::hg+https://bitbucket.org/blais/xxdiff')
md5sums=(SKIP)
_repo=xxdiff

pkgver() {
  cd $_repo
  _id=$(hg identify -i)
  echo $(hg identify -n).${_id:0:4}
}
build() {
  cd "xxdiff/src"
  export QMAKE=/usr/bin/qmake-qt4
  make -f Makefile.bootstrap
  make
}

package() {
  cd "xxdiff/src"
  install -D -m 755 "$srcdir/xxdiff/bin/xxdiff" "$pkgdir/usr/bin/xxdiff"
}
# vim:et sw=2 ts=2 ai