# Contributor: Damian Kurek # Maintainer: Damian Kurek pkgname=kodi-game-libretro-beetle-ngp pkgver=1.29.0.35 _realname=Nexus pkgrel=0 pkgdesc="Beetle-NGP for Kodi" options="!check" # no test suite url="https://github.com/kodi-game/game.libretro.beetle-ngp" 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-ngp" source="$pkgname-$pkgver-$_realname.tar.gz::https://github.com/kodi-game/game.libretro.beetle-ngp/archive/$pkgver-$_realname.tar.gz" builddir="$srcdir/game.libretro.beetle-ngp-$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-ngp/resources/icon.png \ "$pkgdir"/usr/share/kodi/addons/game.libretro.beetle-ngp/resources/screenshot* \ "$pkgdir"/usr/lib/kodi/addons/game.libretro.beetle-ngp/game.libretro.beetle-ngp.so ln -s /usr/lib/libretro/mednafen_ngp_libretro.so \ "$pkgdir"/usr/lib/kodi/addons/game.libretro.beetle-ngp/game.libretro.beetle-ngp.so sed -i '//,/<\/assets>/d' "$pkgdir"/usr/share/kodi/addons/game.libretro.beetle-ngp/addon.xml } sha512sums=" 4f3f78e022ef2a06fb8415dd52319878792f33871ba78294102b8ad403c47dec45733f6c08f7e2ee70eeb9cc13306f68deb5cefeec12d493c6afed766a3a91e7 kodi-game-libretro-beetle-ngp-1.29.0.35-Nexus.tar.gz "