Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Atanua

By: a guest on Apr 24th, 2012  |  syntax: Bash  |  size: 1.00 KB  |  views: 61  |  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. # Contributor: osily <ly50247@gmail.com>
  2. # Maintainer: Athurg <athurg@gooth.cn>
  3.  
  4. pkgname=atanua
  5. _build=110518
  6. pkgver=1.2.$_build
  7. pkgrel=1
  8. pkgdesc="Real time logic simulator"
  9. arch=('i686' 'x86_64')
  10. url="http://sol.gfxile.net/atanua"
  11. license=('custom:atanua')
  12. if [ $CARCH == i686 ]; then
  13.   depends=('sdl_image' 'mesa' 'libgl' 'gtk2' 'gtk-engines')
  14. elif [ $CARCH == x86_64 ]; then
  15.   depends=('lib32-mesa' 'lib32-sdl_image' 'lib32-libgl' 'lib32-gtk2' 'lib32-gtk-engines')
  16. fi
  17. source=("http://sol.gfxile.net/zip/${pkgname}${_build}.tar.gz")
  18. md5sums=('018f92d8964ff68147d05341d3f29c49')
  19.  
  20. package() {
  21.   # Create script inside ${srcdir}
  22.   cat > atanua.sh << EOF
  23. #!/bin/sh
  24. /opt/atanua/atanua $*
  25. EOF
  26.   install -Dm755 atanua.sh "${pkgdir}/usr/bin/atanua"
  27.  
  28.   cd ${pkgname}${_build}
  29.   install -d -m 755 "${pkgdir}/opt/atanua"
  30.   cp -a * "${pkgdir}/opt/atanua"
  31.   install -d -m 755 "${pkgdir}/usr/share/licenses/atanua"
  32.   ln -s /opt/atanua/license.txt "${pkgdir}/usr/share/licenses/atanua/license.txt"
  33. }