updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / gracegtk / PKGBUILD
blob1091557c907fe9cc499064f8c441349dbe845313
1 # Contributor: Connor Behan <connor.behan@gmail.com>
3 pkgname=gracegtk
4 pkgver=0.4.4
5 pkgrel=1
6 pkgdesc="A port of the Grace plotting tool to gtk2"
7 arch=(i686 x86_64)
8 url="http://plasma-gate.weizmann.ac.il/Grace/"
9 depends=('libjpeg' 'fftw' 't1lib' 'netcdf' 'pdflib-lite' 'gtk2')
10 makedepends=('linuxdoc-tools')
11 optdepends=('libundo: ability to undo and redo'
12             'gcc-fortran: computing level curves')
13 license=('GPL')
14 install=gracegtk.install
15 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}_2011_10_13_08h47.tgz $pkgname.png $pkgname.desktop $pkgname-mimetypes ggrace)
17 build() {
18   cd $srcdir/$pkgname-$pkgver
19   grep -rl "'H', TRUE" src | xargs sed -i -e "s/'H', TRUE/'H', FALSE/g"
20   grep -rl "'H' ,TRUE" src | xargs sed -i -e "s/'H' ,TRUE/'H', FALSE/g"
21   sed -i -e "s/.*right_justified.*//g" src/gg.c
22   sed -i -e "s/.*right_justified.*//g" src/gg_gtkutils.c
24   ./configure --prefix=/usr --with-f77=/usr/bin/gfortran
25   make || return 1
28 package() {
29   export TEXINPUTS=$TEXINPUTS:/usr/share/linuxdoc-tools
30   cd $srcdir/$pkgname-$pkgver
31   make DESTDIR=$pkgdir install || return 1
33   mkdir $pkgdir/usr/share
34   mv $pkgdir/usr/$pkgname $pkgdir/usr/share/
35   install -D -m755 "$srcdir/ggrace" "$pkgdir/usr/bin/ggrace"
37   # Desktop integration
38   install -D -m644 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
39   install -D -m644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
40   install -D -m644 "$srcdir/$pkgname-mimetypes" "$pkgdir/usr/share/mime/packages/$pkgname.xml"
44 md5sums=('f41dfa38dcc5da8746dc7f81f93ee5c1' 'ef085e503d30207035f5dfbef648ed36' '8427067a73698b5425901866ca3195d0' '3beba5237f56a2ff28b6cd878865b25c' 'c22c24f810bf0e1f9b8ca8713be19e3e')