PKGBUILDs/extra/retroarch/PKGBUILD

111 lines
2.4 KiB
Bash
Raw Normal View History

2016-06-05 23:13:04 +00:00
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Themaister <maister@archlinux.us>
# Contributor: lifning <definelightning@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - enable GLES
2019-09-03 18:39:35 +00:00
# - disable broken pkgver function
2016-06-05 23:13:04 +00:00
pkgname=retroarch
2024-06-21 23:02:55 +00:00
pkgver=1.19.1
2024-05-06 01:02:22 +00:00
pkgrel=2
2016-06-05 23:13:04 +00:00
pkgdesc='Reference frontend for the libretro API'
2019-02-04 19:16:52 +00:00
arch=(x86_64)
url=http://www.libretro.com/
license=(GPL)
groups=(libretro)
depends=(
alsa-lib
2023-09-13 22:20:30 +00:00
dbus
2022-02-18 13:48:08 +00:00
ffmpeg
2019-10-26 01:37:27 +00:00
flac
2023-09-13 22:20:30 +00:00
fontconfig
fribidi
gcc-libs
glibc
2019-02-04 19:16:52 +00:00
libass.so
libdrm
libfreetype.so
libgl
libpulse
libudev.so
2023-06-03 19:07:00 +00:00
libusb
2023-09-13 22:20:30 +00:00
libx11
libxcb
libxext
libxinerama
libxkbcommon
libxrandr
libxxf86vm
libxv
2019-02-04 19:16:52 +00:00
mesa
2023-09-13 22:20:30 +00:00
openssl
2019-02-04 19:16:52 +00:00
qt5-base
sdl2
v4l-utils
2023-09-13 22:20:30 +00:00
wayland
2019-02-04 19:16:52 +00:00
zlib
)
makedepends=(
2022-01-21 23:25:38 +00:00
gamemode
2019-02-04 19:16:52 +00:00
git
2022-08-23 12:40:32 +00:00
libdecor
2019-02-04 19:16:52 +00:00
vulkan-icd-loader
2019-03-18 18:07:30 +00:00
wayland-protocols
2019-02-04 19:16:52 +00:00
)
optdepends=(
2022-01-21 23:25:38 +00:00
'gamemode: GameMode support'
2022-08-23 12:40:32 +00:00
'libdecor: Wayland decorations'
2019-02-04 19:16:52 +00:00
'libretro-overlays: Collection of overlays'
'libretro-shaders: Collection of shaders'
'python: retroarch-cg2glsl'
2020-05-11 17:05:46 +00:00
'retroarch-assets-ozone: Ozone menu assets'
2019-02-04 19:16:52 +00:00
'retroarch-assets-xmb: XMB menu assets'
)
backup=(etc/retroarch.cfg)
2024-06-21 23:02:55 +00:00
_tag=0792144fe3a7b59908b0afdb2c01722e79040360
2019-02-04 19:16:52 +00:00
source=(
2020-06-23 12:36:22 +00:00
git+https://github.com/libretro/RetroArch.git#tag=${_tag}
2019-02-04 19:16:52 +00:00
retroarch-config.patch
)
2024-06-21 23:02:55 +00:00
b2sums=('f5d0dd615b34a0a8a35516aa9b289a898fedb60e3792a0a10f928a57de52e0412486f5684b9875bfffff6ad29e7affe082d85e24432b8d3531cacda2fb14eae9'
2022-02-17 19:31:47 +00:00
'5ecbe57126c7f9b66bdf189f0af2f1cec031cb68ea85bb9609847ba9beb0e720c902cd3330d7c286901a73e6c2e272c3f04166cf9a47bb6f80097f19dde8ce3a')
2017-05-19 18:01:51 +00:00
2019-09-03 18:39:35 +00:00
#pkgver() {
# cd RetroArch
# git describe --tags | sed 's/^v//'
#}
2019-09-03 18:26:29 +00:00
2017-05-19 18:01:51 +00:00
prepare() {
2018-08-31 12:50:02 +00:00
cd RetroArch
2024-06-21 23:02:55 +00:00
git cherry-pick -n bff678c48a3d453244486b64a21fd4e00f56cbfb
2018-11-14 13:40:34 +00:00
patch -Np1 -i ../retroarch-config.patch
2017-05-19 18:01:51 +00:00
}
2016-06-05 23:13:04 +00:00
build() {
2018-08-31 12:50:02 +00:00
cd RetroArch
2016-06-05 23:13:04 +00:00
./configure \
2019-09-06 19:27:42 +00:00
--prefix=/usr \
2019-10-26 01:37:27 +00:00
--disable-builtinflac \
2024-06-21 23:02:55 +00:00
--enable-builtinmbedtls \
2019-10-26 01:37:27 +00:00
--disable-builtinzlib \
2016-06-05 23:13:04 +00:00
--disable-cg \
--disable-jack \
--disable-oss \
2017-02-04 18:34:00 +00:00
--disable-sdl \
2019-10-26 01:37:27 +00:00
--enable-dbus \
2017-02-04 18:49:25 +00:00
--enable-opengles
2016-06-05 23:13:04 +00:00
make
2017-07-28 17:57:53 +00:00
make -C libretro-common/audio/dsp_filters
2016-06-05 23:13:04 +00:00
make -C gfx/video_filters
}
package() {
2018-08-31 12:50:02 +00:00
cd RetroArch
2016-06-05 23:13:04 +00:00
make DESTDIR="${pkgdir}" install
2017-12-22 23:11:08 +00:00
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/
2016-06-05 23:13:04 +00:00
}
# vim: ts=2 sw=2 et: