1. # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
  2. # Contributor: Sergey Mamonov <mrqwer88 (at) gmail (dot) com>
  3.  
  4.  
  5. pkgname=adom
  6. pkgver=1.2.0
  7. pkgrel=1
  8. pkgdesc="A roguelike game with a quest-centric, plot driven structure"
  9. arch=('i686' 'x86_64')
  10. url="http://www.adom.de/"
  11. license=('custom: "adom"')
  12. if [ "$CARCH" = x86_64 ]
  13.  then
  14.   depends=('lib32-ncurses')
  15.   pre=2
  16.   arch_link=64
  17.   md5sums=('659a068806f2375e1b51295f68801639')
  18.  else
  19.   depends=('ncurses')
  20.   pre=1
  21.   arch_link=32
  22.   md5sums=('603e8501bbfc23297c4cfc7aaeb2fe3a')
  23. fi
  24.  
  25. source=(http://www.ancardia.com/download/adom_linux_debian_${arch_link}_${pkgver}_pre${pre}.tar.gz )
  26.  
  27.  
  28. build() {
  29.   cd ${srcdir}/${pkgname}
  30.  
  31.   install -m755 -D $pkgname ${pkgdir}/usr/bin/$pkgname || return 1
  32.  
  33. #doc files
  34.   install -d ${pkgdir}/usr/share/doc/${pkgname}/ || return 1
  35.   install -D -m644 *.* ${pkgdir}/usr/share/doc/${pkgname}/ || return 1
  36. }