updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / monotone-viz / PKGBUILD
blobc46d820c37c7e92a78cf02beb649f957c7095d09
1 # Contributor: Dan McGee <dpmcgee@gmail.com>
3 pkgname=monotone-viz
4 pkgver=1.0.2
5 pkgrel=1
6 pkgdesc="monotone-viz is a small GTK+ app to visualize monotone ancestory graphs"
7 url="http://oandrieu.nerim.net/monotone-viz/"
8 license="GPL"
9 arch=(i686 x86_64)
10 makedepends=('ocaml')
11 depends=('monotone' 'graphviz' 'gtk2' 'libgnomecanvas' 'lablgtk2' 'openssl')
12 source=(http://oandrieu.nerim.net/$pkgname/$pkgname-$pkgver-nolablgtk.tar.gz \
13         monotone-viz.desktop monotone-viz.png )
14 md5sums=('fd08341b456c80d03d7d21c989a1e813' '0858982f070527a40e5c730b0bd6fafb'\
15          '30162a3fca63f922bbc4150ead1dbb0a')
17 build() {
18   cd $startdir/src/$pkgname-$pkgver
19   # some patches to make it work with monotone >= 0.46 and graphviz
20   patch -p0 < $startdir/monotone-viz-0_46.patch || return 1
21   patch -p1 < $startdir/monotone-viz-agraph.patch || return 1
23   ./configure --prefix=/usr --sysconfdir=/etc
24   make || return 1
25   make DESTDIR=$startdir/pkg install
27   #install freedesktop files
28   mkdir -p $startdir/pkg/usr/share/{applications,pixmaps}
29   install -m644 $startdir/src/monotone-viz.desktop $startdir/pkg/usr/share/applications/monotone-viz.desktop
30   install -m644 $startdir/src/monotone-viz.png $startdir/pkg/usr/share/pixmaps/monotone-viz.png