| 1 | # Contributor: Damian Kurek <[email protected]> |
| 2 | # Maintainer: Damian Kurek <[email protected]> |
| 3 | pkgname=kodi-game-libretro-theodore |
| 4 | pkgver=0.0.1.32 |
| 5 | _realname=Nexus |
| 6 | pkgrel=0 |
| 7 | pkgdesc="Libretro core for Thomson MO/TO emulation" |
| 8 | options="!check" # no test suite |
| 9 | url="https://github.com/kodi-game/game.libretro.theodore" |
| 10 | arch="all !armhf !loongarch64" # kodi is available only on these architectures |
| 11 | license="GPL-3.0-only" |
| 12 | makedepends="cmake kodi-dev samurai" |
| 13 | depends="kodi-game-libretro libretro-theodore" |
| 14 | source="$pkgname-$pkgver-$_realname.tar.gz::https://github.com/kodi-game/game.libretro.theodore/archive/$pkgver-$_realname.tar.gz" |
| 15 | builddir="$srcdir/game.libretro.theodore-$pkgver-$_realname" |
| 16 | |
| 17 | build() { |
| 18 | cmake -B build -G Ninja \ |
| 19 | -DCMAKE_BUILD_TYPE=None \ |
| 20 | -DCMAKE_INSTALL_PREFIX=/usr \ |
| 21 | -DCMAKE_MODULE_PATH=/usr/lib/cmake/kodi |
| 22 | cmake --build build |
| 23 | } |
| 24 | |
| 25 | package() { |
| 26 | DESTDIR="$pkgdir" cmake --install build |
| 27 | rm -r "$pkgdir"/usr/share/kodi/addons/game.libretro.theodore/resources/icon.png \ |
| 28 | "$pkgdir"/usr/share/kodi/addons/game.libretro.theodore/resources/screenshot* \ |
| 29 | "$pkgdir"/usr/lib/kodi/addons/game.libretro.theodore/game.libretro.theodore.so |
| 30 | ln -s /usr/lib/libretro/theodore_libretro.so \ |
| 31 | "$pkgdir"/usr/lib/kodi/addons/game.libretro.theodore/game.libretro.theodore.so |
| 32 | sed -i '/<assets>/,/<\/assets>/d' "$pkgdir"/usr/share/kodi/addons/game.libretro.theodore/addon.xml |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | c24c015361cd8c35152fe8f651aa31044c7f33836942f0d6696e4fe670f9d5dfcd39d49a5cd803e91518ddedcfa59bf14a8cabc06219dafdf16d4d6860145844 kodi-game-libretro-theodore-0.0.1.32-Nexus.tar.gz |
| 37 | " |