aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/kodi-peripheral-joystick/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/kodi-peripheral-joystick/APKBUILD b/testing/kodi-peripheral-joystick/APKBUILD
new file mode 100644
index 0000000000..0006e8ef9e
--- /dev/null
+++ b/testing/kodi-peripheral-joystick/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Damian Kurek <starfire24680@gmail.com>
+# Maintainer: Damian Kurek <starfire24680@gmail.com>
+pkgname=kodi-peripheral-joystick
+pkgver=1.7.1
+_realname=Matrix
+pkgrel=0
+pkgdesc="Kodi joystick support (drivers and button maps)"
+options="!check" # no test suite
+url="https://github.com/xbmc/peripheral.joystick"
+arch="x86 x86_64 aarch64" # kodi
+license="GPL-2.0-only"
+makedepends="cmake kodi-dev tinyxml-dev"
+source="$pkgname-$pkgver-$_realname.tar.gz::https://github.com/xbmc/peripheral.joystick/archive/$pkgver-$_realname.tar.gz"
+builddir="$srcdir/peripheral.joystick-$pkgver-$_realname"
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_MODULE_PATH=/usr/lib/cmake/kodi \
+ -DUSE_LTO=1
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --build build --target install
+}
+
+sha512sums="38c53ccd9815212eb51154faaa8073507457a6f7c68d4d472f7c4e4e3a5342cfc085a75a2d3022475d57df08ac0e800406d24484106e64316957772f41235d5c kodi-peripheral-joystick-1.7.1-Matrix.tar.gz"