# Contributor: Peter Kosyh <p.kosyhgmail.com>

pkgname=instead
pkgver=1.9.1
pkgrel=1
pkgdesc="instead quest interpreter"
arch=('i686' 'x86_64')
url="http://instead.sourceforge.net/"
license=('GPL')
depends=('sdl_image' 'sdl_mixer' 'sdl_ttf' 'lua')
source=(http://downloads.sourceforge.net/project/instead/instead/${pkgver}/instead_${pkgver}.tar.gz)
md5sums=(MD5SUM)

optdepends=('instead-launcher: install and update INSTEAD games from net')

build() {
cd "${srcdir}/instead-${pkgver}"

echo "2" | ./configure.sh
make PREFIX=/usr
}

package() {
cd "${srcdir}/instead-${pkgver}"

make DESTDIR="${pkgdir}" PREFIX=/usr install
}
