hi @graysky,
I cleaned a bit the PKGBUILDs by fixing the arch plus I reread the wiki and searched AUR and the repos
sorry for being such a noob, I still have a couple of doubts:
kodi-peripheral-joystickNot available in x86_64, armv7hf, aarch64 repos
Not available in AUR
source is:
https://github.com/xbmc/peripheral.joystickrelease 20.1.0-Nexus - 01/01/2022
my PKGBUILD builds and installs fine
2 little doubts:
- I saw on the source github that it depends on tinyxml.
I added the dependency on both the makedepends and package depends, is it really needed?
or better explained, i saw the depends in the github source, is there a better way to know the dependencie?
- in the package depends I have kodi-rpi, is there a possibility to have alternative depends?
I am thinking that if it was possible to have both kodi-rpi and kodi-rpi-git, the same package should work for both.
Or possibly the same package could work also for standard kodi on non-arm architectures
kodi-addon-game-libretrosimilar package for x86_64 available in the repos:
https://archlinux.org/packages/community/x86_64/kodi-addon-game-libretro/but it is for Kodi 19.0.2-Matrix (and for x86_64)
the PKGBUILD I prepared is for 20.1.0-Nexus - 01/01/2022
[url]from
https://github.com/kodi-game/game.libretro[/url]
similar package in AUR:
https://aur.archlinux.org/packages/kodi-addon-game-libretro-gitbut it is from git and installs a couple of cores (if I understand how it works, have not tried it..)
like: game.libretro.gambatte game.libretro.snes9x game.libretro.scummvm game.libretro.yabause game.controller.snes
which in my mind, make sense to keep separate
question/doubt:
- similar to my doubt above, if there a possibility to have both kodi and kodi-rpi in package depends then i guess 1 package could work (probably the Kodi 19.0.2-Matrix for x86_64 could just be updated)
kodi-addon-game-libretro-nestopiathere is basically the same package in repos but only for 'x86_64'
no kodi-addon nestopia in AUR or as a armv7hf, aarch64
silly question but not sure what is the best way
- should i try to contact the maintainer of the x86_64 package and see if he can add arm architectures or it makes sense to have an additional package?
the same applies for most of the other cores
I was trying to compile some more core, including the ones that are not available for x86_64 but i got a couple of failures, so the path is still long...
I also got distracted by the fact that steamlink doesn't work... so i might need to focus on that a bit now...but that is for another thread
in any case, these are the PKGBUILD's, please feel free to let me have your comment
later I will post also on the regular arch AUR forum and try to get all this sorted out
super thanks
M
kodi-peripheral-joystick:
$this->bbcode_second_pass_code('', '
# Maintainer: xxx <xxx DOT xxx AT xxx DOT xxx>
pkgname=kodi-peripheral-joystick
pkgver=20.1.0
_codename=Nexus
pkgrel=1
pkgdesc="This add-on provides joystick drivers and button mapping services for Kodi. It uses the Peripheral API added to Kodi as part of PR 8807"
arch=('armv7h' 'aarch64')
url="https://github.com/xbmc/peripheral.joystick"
license=('GPL2')
groups=('kodi-addons' 'kodi-peripheral')
makedepends=('cmake' 'kodi-dev' 'tinyxml')
options=(!lto debug)
source=("$pkgname-$pkgver.tar.gz::https://github.com/xbmc/peripheral.joystick/archive/refs/tags/$pkgver-$_codename.tar.gz")
sha512sums=('c5016f74bee316e5b25686420125397cb1840de72be4e9a11390a1338ad920b93d2e8cf36e845feb82aba826a425152dcb621a9ef1b6aea6259d9423283957d9')
build() {
cd "peripheral.joystick-$pkgver-$_codename"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=1 \
-DUSE_LTO=1 \
.
make
}
package() {
depends=('kodi-rpi' 'tinyxml')
cd "peripheral.joystick-$pkgver-$_codename"
make DESTDIR="$pkgdir/" install
}')
kodi-addon-game-libretro:
$this->bbcode_second_pass_code('', '# Maintainer: xxx <xxx DOT xxx AT xxx DOT xxx>
pkgname=kodi-addon-game-libretro
pkgver=20.1.0
_codename=Nexus
pkgrel=1
pkgdesc="This add-on provides a wrapper that allows Libretro cores to be loaded as game add-ons"
arch=('armv7hf' 'aarch64')
url="https://github.com/kodi-game/game.libretro"
license=('GPL2')
groups=('kodi-addons' 'kodi-addons-game')
makedepends=('cmake' 'libretro-core-info' 'kodi-platform' 'kodi-dev')
options=(!lto debug)
source=("$pkgname-$pkgver.tar.gz::https://github.com/kodi-game/game.libretro/archive/refs/tags/$pkgver-$_codename.tar.gz")
sha512sums=('df1ea78b978a753b8698e808cd241fafc34d731e38d4f165b713e2bb836e9b1353ea6d8506e2f4915116e5e430286903615faa7eb6c3526f163e7cba88cedabf')
build() {
cd "game.libretro-$pkgver-$_codename"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=1 \
-DUSE_LTO=1 \
.
make
}
package() {
depends=('kodi-rpi' 'kodi-platform' 'libretro-core-info')
cd "game.libretro-$pkgver-$_codename"
make DESTDIR="$pkgdir/" install
}')
kodi-addon-game-libretro-nestopia:
$this->bbcode_second_pass_code('', '# Maintainer: xxx <xxx DOT xxx AT xxx DOT xxx>
pkgname=kodi-addon-game-libretro-nestopia
pkgver=1.51.1.26
_codename=Matrix
pkgrel=1
pkgdesc="This add-on provides a wrapper that allows Libretro cores to be loaded as game add-ons"
arch=('aarch64' 'armv7h')
url="https://github.com/kodi-game/game.libretro.nestopia"
license=('GPL2')
groups=('kodi-addons' 'kodi-addons-game')
makedepends=('cmake' 'kodi-dev' 'kodi-addon-game-libretro' 'libretro-nestopia')
options=(!lto debug)
source=("$pkgname-$pkgver.tar.gz::https://github.com/kodi-game/game.libretro.nestopia/archive/refs/tags/$pkgver-$_codename.tar.gz")
sha512sums=('6e501f7fcb792d6c58ab9e3b9bba4866fb4814a92ed9b49584755ea6d3d3caee307d1a84e28b2fe9f951a0926724286efddee255ecebd79c9589250cfeaa953c')
build() {
cd "game.libretro.nestopia-$pkgver-$_codename"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=1 \
-DUSE_LTO=1 \
.
make
}
package() {
depends=('kodi-addon-game-libretro' 'libretro-nestopia')
cd "game.libretro.nestopia-$pkgver-$_codename"
make DESTDIR="$pkgdir/" install
}')