1 # Contributor: Connor Behan <connor.behan@gmail.com>
6 pkgdesc="A port of the Grace plotting tool to gtk2"
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')
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)
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
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"
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')