# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Vaporeon <vaporeon@vaporeon.io>
# Contributor: casa <sympho08@yandex.ru>

pkgname=mednaffe 
pkgver=0.8.8
pkgrel=1
pkgdesc="front-end (GUI) for mednafen emulator"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/AmatCoder/mednaffe"
license=('GPL')
depends=('mednafen' 'gtk3')
source=(https://github.com/AmatCoder/mednaffe/releases/download/$pkgver/$pkgname-$pkgver.tar.gz)
sha1sums=('f66f7bd3b015741a7632728b23af9df6124f1e3c')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./configure --prefix=/usr --enable-gtk3
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make prefix="$pkgdir"/usr install
}
