updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / javanns / PKGBUILD
blob925c602a0a46de7aeb7d681e7c781db64bf1fd92
1 # Maintainer: Marek Otahal <markotahal gmail>
2 # Contributor: Marek Otahal
3 pkgname=javanns
4 pkgver=1.1
5 pkgrel=1
6 pkgdesc="Java Neural Network Simulator-create, test, validate, represent neural network problems in a nice GUI"
7 arch=("i686" "x86_64")
8 url="http://www.ra.cs.uni-tuebingen.de/software/JavaNNS/"
9 license=("GPL")
10 install=javanns.install
11 makedepends=('tar' 'wget')
12 depends=('java-runtime>=1.3')
13 source=('javanns' 
14         'javanns.desktop')
15 md5sums=('1338402701874ac171e572313d8c0376'
16         '1f88b48126c3a68c9eba91aacf42fb00')
18 build() {
19   cd $srcdir
21  if [ ${CARCH} == "x86_64" ]; then
22         wget "http://www.ra.cs.uni-tuebingen.de/downloads/JavaNNS/JavaNNS-LinuxAMD64.tar.gz" 
23  else
24         wget "http://www.ra.cs.uni-tuebingen.de/downloads/JavaNNS/JavaNNS-LinuxIntel.tar.gz"
25  fi
27   msg "Found game package, installing..."
29   tar xvf JavaNNS-LinuxIntel.tar.gz
30   chmod a+x examples
33 package() {
34         install -d "${pkgdir}/usr/bin" \
35                 "${pkgdir}/usr/share/doc/$pkgname" \
36                 "${pkgdir}/usr/share/applications" \
37                 "${pkgdir}/opt/javanns"
39         install -m755 javanns  "$pkgdir/usr/bin/"
40         install -d examples manual "${pkgdir}/opt/javanns"
41         install -m644 JavaNNS.jar "${pkgdir}/opt/javanns"
42         install -m644 "${srcdir}/javanns.desktop" \
43                 "${pkgdir}/usr/share/applications/javanns.desktop"
45         ln -s /opt/javanns/examples $pkgdir/usr/share/doc/javanns/examples
46         ln -s /opt/javanns/manual $pkgdir/usr/share/doc/javanns/manual
49 # vim: set noet ff=unix: