updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / jgraph / PKGBUILD
blobe60b8de4457acc49b2982f1ca449a0cc8d4cc9d6
1 # Contributor: Norman Makoto Su <normsu@ics.uci.edu>
3 pkgname=jgraph
4 pkgver=8.3
5 pkgrel=1
6 pkgdesc="Program for generating scatter point, line and bar graphs in PostScript."
7 url="http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.html"
8 license=""
9 depends=()
10 makedepends=()
11 conflicts=()
12 replaces=()
13 backup=()
14 install=jgraph.install
15 source=(http://www.cs.utk.edu/~plank/plank/jgraph/$pkgname.shar.Z)
16 md5sums=('7e131d397d9c28f1e180f0d006ef07aa')
18 build() {
19   uncompress -f $pkgname.shar.Z
20   sh $pkgname.shar
21   sed -ie "s|CC = cc|CC = gcc -DLCC|" makefile
22   sed -ie "s|nawk|awk|g" *
23   sed -ie "s|JGRAPH_DIR|/usr/share/jgraph|" jgraph.1
24   mkdir -p $startdir/pkg/usr/{bin,man/man1,share/jgraph}
25   cp *.jgr $startdir/pkg/usr/share/jgraph
26   cp draw.c $startdir/pkg/usr/share/jgraph
27   cp sin.c $startdir/pkg/usr/share/jgraph
28   cp sin{,2,3}.pts $startdir/pkg/usr/share/jgraph
29   cp tree.awk $startdir/pkg/usr/share/jgraph
30   cp bailey.pts $startdir/pkg/usr/share/jgraph
31   cp data.txt  $startdir/pkg/usr/share/jgraph
32   cp draw.c $startdir/pkg/usr/share/jgraph
33   cp mab2.times $startdir/pkg/usr/share/jgraph
34   cp makefile $startdir/pkg/usr/share/jgraph
35   make || return 1
36   cp jgraph $startdir/pkg/usr/bin
37   cp jgraph.1 $startdir/pkg/usr/man/man1