Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 28th, 2012  |  syntax: None  |  size: 1.63 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Marek Otahal <markotahal gmail>
  2. # Contributor: Marek Otahal
  3. pkgname=javanns
  4. pkgver=1.1
  5. pkgrel=2
  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.  
  14. _pkg="JavaNNS-LinuxIntel.tar.gz"
  15. if test "$CARCH" == x86_64; then
  16.   _pkg="JavaNNS-LinuxAMD64.tar.gz"
  17. fi
  18. source=('javanns'
  19.         'javanns.desktop'
  20.         http://www.ra.cs.uni-tuebingen.de/downloads/JavaNNS/$_pkg
  21.         )
  22.  
  23. md5sums=('1338402701874ac171e572313d8c0376'
  24.          '1f88b48126c3a68c9eba91aacf42fb00'
  25.          '181e9a9159b9539d59e51af64a41cd42'
  26.         )
  27. if test "$CARCH" == x86_64; then
  28.   md5sums=('1338402701874ac171e572313d8c0376'
  29.           '1f88b48126c3a68c9eba91aacf42fb00'
  30.           '69204379e41be3916c11ef6f03ac1f38'
  31.           )
  32. fi
  33.  
  34. package() {
  35.         install -d "${pkgdir}/usr/bin" \
  36.                 "${pkgdir}/usr/share/doc/$pkgname" \
  37.                 "${pkgdir}/usr/share/applications" \
  38.                 "${pkgdir}/opt/javanns"
  39.  
  40.         install -m755 javanns  "$pkgdir/usr/bin/"
  41.  
  42.  
  43.         install -d "${pkgdir}/opt/javanns/examples" \
  44.                 "${pkgdir}/opt/javanns/manual"
  45.         cp -rPf "${srcdir}/examples"/* "${pkgdir}/opt/javanns/examples"
  46.         cp -rPf "${srcdir}/manual"/* "${pkgdir}/opt/javanns/manual"
  47.        
  48.         install -m644 JavaNNS.jar "${pkgdir}/opt/javanns"
  49.         install -m644 "${srcdir}/javanns.desktop" \
  50.                 "${pkgdir}/usr/share/applications/javanns.desktop"
  51.  
  52.         ln -s /opt/javanns/examples $pkgdir/usr/share/doc/javanns/examples
  53.         ln -s /opt/javanns/manual $pkgdir/usr/share/doc/javanns/manual
  54. }
  55.  
  56. # vim: set noet ff=unix:
clone this paste RAW Paste Data