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

pkgname=instead
pkgver=3.2.1
pkgrel=1
pkgdesc="instead quest interpreter"
arch=('i686' 'x86_64')
url="http://instead.sourceforge.net/"
license=('MIT')
depends=('sdl2_image' 'sdl2_mixer' 'sdl2_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
}
