# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=frotz
pkgver=2.44
pkgrel=0
pkgdesc="A Portable Z-Machine Interpreter"
url="http://frotz.sourceforge.net/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="ncurses-dev"
install=""
subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/DavidGriffith/${pkgname}/archive/${pkgver}.tar.gz
	Makefile.patch"
builddir="$srcdir/$pkgname-${pkgver}"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	strip $pkgname
	install -m755 -d "${pkgdir}/usr/bin"
	install -m755 -d "${pkgdir}/usr/share/man/man6"
        install -m755 $pkgname "${pkgdir}/usr/bin/"
        install -m644 doc/${pkgname}.6 ${pkgdir}/usr/share/man/man6/${pkgname}.6
}

md5sums="0e8cd773dceb3241c8be51e8fadbd4ca  frotz-2.44.tar.gz
d3ebe35d8a03f93e40d6996c0118b3df  Makefile.patch"
sha256sums="dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f  frotz-2.44.tar.gz
cea5fd75899721016b1a9d7443483926f203c9ab0d78ec74bfb975725041f7d6  Makefile.patch"
sha512sums="20b2c8948f093463c53498b322230881aa1ad9c8fd68a338b4f5c4803ab28007fc8ba63f6d20f2b4d440fd04138709b9f4f103c9f8a71788e80156ccdff9ce1f  frotz-2.44.tar.gz
50bd0db62eb09bb316dbab106d2bba0ad389e151fefbc587dbd15faf238b559276ce9d603333d5da8760623d014e2587609b96401e616f22062cb0a6aaa2f346  Makefile.patch"
