# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-bk
pkgver=0_git20220726
pkgrel=0
_commit="cf70ce503ddb65051a58f3c4f61d1e258fc4c84b"
pkgdesc="BK-0010/0011/Terak 8510a emulator"
url="https://github.com/libretro/bk-emulator"
arch="all"
license="custom"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/bk-emulator/archive/$_commit.tar.gz"
builddir="$srcdir/bk-emulator-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

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

sha512sums="
a20e2555aae49a7c2a43a36c6605ccf22a5c3dbb3d6ffa128da29502f997f82076b9d90560895763c4ee06d578c564c0ac493a917bcc562870ec900e018a754e  libretro-bk-cf70ce503ddb65051a58f3c4f61d1e258fc4c84b.tar.gz
"
