# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Sergey Mamonov <mrqwer88 (at) gmail (dot) com>
pkgname=adom
pkgver=1.2.0
pkgrel=1
pkgdesc="A roguelike game with a quest-centric, plot driven structure"
arch=('i686' 'x86_64')
url="http://www.adom.de/"
license=('custom: "adom"')
if [ "$CARCH" = x86_64 ]
then
depends=('lib32-ncurses')
pre=2
arch_link=64
md5sums=('659a068806f2375e1b51295f68801639')
else
depends=('ncurses')
pre=1
arch_link=32
md5sums=('603e8501bbfc23297c4cfc7aaeb2fe3a')
fi
source=(http://www.ancardia.com/download/adom_linux_debian_${arch_link}_${pkgver}_pre${pre}.tar.gz )
build() {
cd ${srcdir}/${pkgname}
install -m755 -D $pkgname ${pkgdir}/usr/bin/$pkgname || return 1
#doc files
install -d ${pkgdir}/usr/share/doc/${pkgname}/ || return 1
install -D -m644 *.* ${pkgdir}/usr/share/doc/${pkgname}/ || return 1
}