# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-wswan
pkgver=0_git20230120
pkgrel=0
_commit="05ec7364913a95d8bb8691a41505d3d66b9e8367"
pkgdesc="standalone fork of Mednafen WonderSwan to libretro"
url="https://github.com/libretro/beetle-wswan-libretro"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-wswan-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/beetle-wswan-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mednafen_wswan_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_wswan_libretro.so
}

sha512sums="
266008dd47dff04ef5529a12dfa37b462119177f569e34f0d033650fc54bb5700812696540dbf62049c180adc12ee612a2164e424ea58b8b93c9509d96c11698  libretro-beetle-wswan-05ec7364913a95d8bb8691a41505d3d66b9e8367.tar.gz
"
