summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDobroslaw Kijowski2020-04-06 15:59:02 +0200
committerdobo_pl2020-04-06 22:14:10 +0200
commita19076d5dacf0e2ce9514e381d162d57e87d65f9 (patch)
treeca650d8c27fe12d159740d4a64c98cb2d09bd75d
parent3d9910360b7b6cc487e8c75c8163ba9ed4d34455 (diff)
downloadaur-a19076d5dacf0e2ce9514e381d162d57e87d65f9.tar.gz
Initial Raspberry Pi 4 support
* Based on retroarch-rpi PKGBUILD and package.mk from Lakka
-rw-r--r--.SRCINFO39
-rw-r--r--PKGBUILD62
-rw-r--r--service13
-rw-r--r--sysusers.conf1
-rw-r--r--tmpfiles.conf1
5 files changed, 65 insertions, 51 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8c48f5a9e47..daf24ea046f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,57 +1,46 @@
-pkgbase = retroarch
- pkgdesc = Reference frontend for the libretro API
+pkgbase = retroarch-rbp4
+ pkgdesc = Reference frontend for the libretro API (Raspberry Pi 4)
pkgver = 1.8.5
pkgrel = 1
url = http://www.libretro.com/
- arch = x86_64
+ arch = armv7h
groups = libretro
license = GPL
makedepends = git
- makedepends = libx11
- makedepends = libxcb
- makedepends = libxext
- makedepends = libxinerama
- makedepends = libxkbcommon
- makedepends = libxrandr
- makedepends = libxv
- makedepends = libxxf86vm
- makedepends = vulkan-icd-loader
- makedepends = wayland
- makedepends = wayland-protocols
depends = alsa-lib
depends = flac
depends = libass.so
depends = libavcodec.so
depends = libavformat.so
depends = libavutil.so
- depends = libdrm
depends = libfreetype.so
- depends = libgl
- depends = libpulse
depends = libswresample.so
depends = libswscale.so
depends = libudev.so
depends = libusb-1.0.so
+ depends = libxkbcommon
depends = mbedtls
depends = mesa
depends = miniupnpc
- depends = openal
- depends = qt5-base
- depends = sdl2
depends = v4l-utils
- depends = zlib
optdepends = libretro-overlays: Collection of overlays
optdepends = libretro-shaders: Collection of shaders
- optdepends = libxinerama: X11 support
- optdepends = libxrandr: X11 support
optdepends = python: retroarch-cg2glsl
optdepends = retroarch-assets-xmb: XMB menu assets
- optdepends = wayland: Wayland support
+ provides = retroarch=1.8.5
+ conflicts = retroarch
+ conflicts = retroarch-rbp
backup = etc/retroarch.cfg
source = git+https://github.com/libretro/RetroArch.git#tag=8bcd74bf42f486c37e243a80e29bc214b2b6b205
source = retroarch-config.patch
+ source = service
+ source = sysusers.conf
+ source = tmpfiles.conf
sha256sums = SKIP
sha256sums = 7857cff30c45721b66666828ca9edbb2923817c6c64591be3f58fe019277103e
+ sha256sums = 2e0fd9b160f66ed69630d562ecc0c7db06802d6373305e951f5ffecbdfc93cfb
+ sha256sums = d4e4a5ac6c961eafb3edfc28186f75e471dc81e308791d57cfccae4f43de4dae
+ sha256sums = e6055a91ca94379f63ff4e8437c085f8f64896a6ce2dd242c36954e48b60d29c
-pkgname = retroarch
+pkgname = retroarch-rbp4
diff --git a/PKGBUILD b/PKGBUILD
index df0d655b97d..74c80ed2190 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,20 @@
-# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+# Maintainer: Dobroslaw Kijowski <dobo90_at_gmail.com>
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Sergey Slipchenko <faergeek@gmail.com>
# Contributor: Themaister <maister@archlinux.us>
# Contributor: lifning <definelightning@gmail.com>
-pkgname=retroarch
+_pkgname=retroarch
+pkgname=retroarch-rbp4
pkgver=1.8.5
pkgrel=1
-pkgdesc='Reference frontend for the libretro API'
-arch=(x86_64)
+pkgdesc='Reference frontend for the libretro API (Raspberry Pi 4)'
+arch=(armv7h)
url=http://www.libretro.com/
license=(GPL)
groups=(libretro)
+provides=("${_pkgname}=${pkgver}")
+conflicts=("${_pkgname}" "${_pkgname}-rbp")
depends=(
alsa-lib
flac
@@ -17,54 +22,40 @@ depends=(
libavcodec.so
libavformat.so
libavutil.so
- libdrm
libfreetype.so
- libgl
- libpulse
libswresample.so
libswscale.so
libudev.so
libusb-1.0.so
+ libxkbcommon
mbedtls
mesa
miniupnpc
- openal
- qt5-base
- sdl2
v4l-utils
- zlib
)
makedepends=(
git
- libx11
- libxcb
- libxext
- libxinerama
- libxkbcommon
- libxrandr
- libxv
- libxxf86vm
- vulkan-icd-loader
- wayland
- wayland-protocols
)
optdepends=(
'libretro-overlays: Collection of overlays'
'libretro-shaders: Collection of shaders'
- 'libxinerama: X11 support'
- 'libxrandr: X11 support'
'python: retroarch-cg2glsl'
'retroarch-assets-xmb: XMB menu assets'
- 'wayland: Wayland support'
)
backup=(etc/retroarch.cfg)
source=(
git+https://github.com/libretro/RetroArch.git#tag=8bcd74bf42f486c37e243a80e29bc214b2b6b205
retroarch-config.patch
+ service
+ sysusers.conf
+ tmpfiles.conf
)
sha256sums=(
SKIP
7857cff30c45721b66666828ca9edbb2923817c6c64591be3f58fe019277103e
+ 2e0fd9b160f66ed69630d562ecc0c7db06802d6373305e951f5ffecbdfc93cfb
+ d4e4a5ac6c961eafb3edfc28186f75e471dc81e308791d57cfccae4f43de4dae
+ e6055a91ca94379f63ff4e8437c085f8f64896a6ce2dd242c36954e48b60d29c
)
pkgver() {
@@ -84,15 +75,30 @@ build() {
./configure \
--prefix=/usr \
+ --disable-al \
--disable-builtinflac \
--disable-builtinmbedtls \
--disable-builtinminiupnpc \
--disable-builtinzlib \
--disable-cg \
+ --disable-dispmanx \
--disable-jack \
--disable-oss \
+ --disable-pulse \
+ --disable-qt \
--disable-sdl \
- --enable-dbus
+ --disable-sdl2 \
+ --disable-vg \
+ --disable-wayland \
+ --disable-x11 \
+ --disable-videocore \
+ --disable-vulkan \
+ --disable-vulkan_display \
+ --enable-kms \
+ --enable-opengles \
+ --enable-opengles3 \
+ --enable-opengl_core \
+ --enable-plain_drm
make
make -C libretro-common/audio/dsp_filters
make -C gfx/video_filters
@@ -105,6 +111,10 @@ package() {
install -Dm 644 libretro-common/audio/dsp_filters/*.{dsp,so} -t "${pkgdir}"/usr/lib/retroarch/filters/audio/
install -Dm 644 gfx/video_filters/*.{filt,so} -t "${pkgdir}"/usr/lib/retroarch/filters/video/
+
+ install -Dm 644 "${srcdir}"/service "${pkgdir}"/usr/lib/systemd/system/retroarch.service
+ install -Dm 644 "${srcdir}"/sysusers.conf "${pkgdir}"/usr/lib/sysusers.d/retroarch.conf
+ install -Dm 644 "${srcdir}"/tmpfiles.conf "${pkgdir}"/usr/lib/tmpfiles.d/retroarch.conf
}
# vim: ts=2 sw=2 et:
diff --git a/service b/service
new file mode 100644
index 00000000000..a991141595f
--- /dev/null
+++ b/service
@@ -0,0 +1,13 @@
+[Unit]
+Description = Starts an instance of Retroarch
+After = remote-fs.target
+
+[Service]
+User = retroarch
+Group = retroarch
+Type = simple
+ExecStart = /usr/bin/retroarch
+Restart = on-failure
+
+[Install]
+WantedBy = multi-user.target
diff --git a/sysusers.conf b/sysusers.conf
new file mode 100644
index 00000000000..54981dc847b
--- /dev/null
+++ b/sysusers.conf
@@ -0,0 +1 @@
+u retroarch /sbin/nologin "Retroarch user" /var/lib/retroarch
diff --git a/tmpfiles.conf b/tmpfiles.conf
new file mode 100644
index 00000000000..4dac69e182c
--- /dev/null
+++ b/tmpfiles.conf
@@ -0,0 +1 @@
+d /var/lib/retroarch 0755 retroarch retroarch