# Contributor: Horst Burkhardt <horst@adelielinux.org>
# Maintainer: Horst Burkhardt <horst@adelielinux.org>
pkgname=mednaffe
pkgver=0.8.8
pkgrel=0
pkgdesc="Graphical interface for the Mednafen multi-system emulator"
url="https://github.com/AmatCoder/mednaffe"
arch="all !s390x"
options="!check" # mednaffe does not ship a test suite
subpackages="$pkgname-doc"
license="GPL-3.0-only"
depends="mednafen"
makedepends="mednafen gtk+2.0-dev glib-dev atk-dev pango-dev cairo-dev
	libxfixes-dev libx11-dev libxrender-dev libxi-dev libxext-dev
	libxdamage-dev libffi-dev pcre-dev freetype-dev harfbuzz-dev libxcb-dev
	expat-dev libxau-dev libxdmcp-dev graphite2-dev libuuid libbsd-dev"
source="https://github.com/AmatCoder/mednaffe/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr --disable-gtk3
	make 
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="93e80f9c1d7a4caf5324c00760cd559031df5f29ad98d917ca2d514b012fcd616692eb2ae85eee3c17750dea890fa0206d9c1a548227ac3b762aab44837d2ae4  mednaffe-0.8.8.tar.gz"