projects/aports·blob master · refs

37 lines · 1.6 KiB

1# Contributor: Damian Kurek <[email protected]>
2# Maintainer: Damian Kurek <[email protected]>
3pkgname=kodi-game-libretro-theodore
4pkgver=0.0.1.32
5_realname=Nexus
6pkgrel=0
7pkgdesc="Libretro core for Thomson MO/TO emulation"
8options="!check" # no test suite
9url="https://github.com/kodi-game/game.libretro.theodore"
10arch="all !armhf !loongarch64" # kodi is available only on these architectures
11license="GPL-3.0-only"
12makedepends="cmake kodi-dev samurai"
13depends="kodi-game-libretro libretro-theodore"
14source="$pkgname-$pkgver-$_realname.tar.gz::https://github.com/kodi-game/game.libretro.theodore/archive/$pkgver-$_realname.tar.gz"
15builddir="$srcdir/game.libretro.theodore-$pkgver-$_realname"
16
17build() {
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
25package() {
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
35sha512sums="
36c24c015361cd8c35152fe8f651aa31044c7f33836942f0d6696e4fe670f9d5dfcd39d49a5cd803e91518ddedcfa59bf14a8cabc06219dafdf16d4d6860145844 kodi-game-libretro-theodore-0.0.1.32-Nexus.tar.gz
37"