updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jaxodraw / PKGBUILD
blobc670fa652a475809f991d0322b1909f936fa725b
1  ##Contributor: T.Cunly
3 pkgname=jaxodraw
4 pkgver=2.0
5 pkgrel=1
7 pkgdesc="JaxoDraw is a Java program for drawing Feynman diagrams."
8 arch=(i686 x86_64)
9 url="http://jaxodraw.sourceforge.net"
10 license=('GPL')
11 depends=(apache-ant)
12 source=("http://ftp.heanet.ie/pub/sourceforge/j/project/ja/jaxodraw/jaxodraw/2.0-1/jaxodraw-2.0-1_src.tar.gz" 'jaxodraw')
13 md5sums=('d4837b2f2a083b110d92f6b8ea649057' '740a424ffae252682969e41da7e70165')
15 build() {
16    cd $srcdir/JaxoDraw-$pkgver-$pkgrel 
17    ant || return 1
18    ant javadoc
20    install -D -m 644 build/$pkgname-$pkgver-$pkgrel.jar $pkgdir/opt/Science/JaxoDraw/$pkgname-$pkgver-$pkgrel.jar
22    DOCDIR=/usr/share/doc
23    if [ ! -d $pkgdir$DOCDIR ]
24    then
25            mkdir -p $pkgdir$DOCDIR
26    fi
28    mv build/javadoc  $pkgdir$DOCDIR/jaxodraw
30    BINDIR=/usr/local/bin
31    if [ ! -d $pkgdir$BINDIR ]
32    then
33            mkdir -p $pkgdir$BINDIR
34    fi
36    install -D -m 755 $startdir/jaxodraw $pkgdir$BINDIR/
39