# Contributor: Damian Kurek # Maintainer: Damian Kurek pkgname=kodi-game-libretro-beetle-wswan pkgver=0.9.35.41 _realname=Nexus pkgrel=0 pkgdesc="Beetle-wswan for Kodi" options="!check" # no test suite url="https://github.com/kodi-game/game.libretro.beetle-wswan" arch="x86_64 aarch64 armv7" # kodi is available only on these architectures license="GPL-2.0-only" makedepends="cmake kodi-dev samurai" depends="kodi-game-libretro libretro-beetle-wswan" source="$pkgname-$pkgver-$_realname.tar.gz::https://github.com/kodi-game/game.libretro.beetle-wswan/archive/$pkgver-$_realname.tar.gz" builddir="$srcdir/game.libretro.beetle-wswan-$pkgver-$_realname" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_MODULE_PATH=/usr/lib/cmake/kodi cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build rm -r "$pkgdir"/usr/share/kodi/addons/game.libretro.beetle-wswan/resources/icon.png \ "$pkgdir"/usr/share/kodi/addons/game.libretro.beetle-wswan/resources/screenshot* \ "$pkgdir"/usr/lib/kodi/addons/game.libretro.beetle-wswan/game.libretro.beetle-wswan.so ln -s /usr/lib/libretro/mednafen_wswan_libretro.so \ "$pkgdir"/usr/lib/kodi/addons/game.libretro.beetle-wswan/game.libretro.beetle-wswan.so sed -i '//,/<\/assets>/d' "$pkgdir"/usr/share/kodi/addons/game.libretro.beetle-wswan/addon.xml } sha512sums=" b44d73836867a43ba137e116a6b77c7ba8df68d70a492ea9f48dd394ec88bcdd635dcd497eeec4965bd117ef43b7872d671cc2d3e3194328156df5b6555987bc kodi-game-libretro-beetle-wswan-0.9.35.41-Nexus.tar.gz "