PKGBUILDs/extra/retroarch/PKGBUILD

111 lines
2.3 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
2023-03-20 13:27:38 +00:00
pkgver=1.15.0
2023-06-03 19:07:00 +00:00
pkgrel=3
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
2022-02-18 13:48:08 +00:00
ffmpeg
2019-10-26 01:37:27 +00:00
flac
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
2019-10-26 01:37:27 +00:00
mbedtls
2019-02-04 19:16:52 +00:00
mesa
openal
qt5-base
sdl2
2022-01-21 23:25:38 +00:00
spirv-tools
2019-02-04 19:16:52 +00:00
v4l-utils
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-03-18 18:07:30 +00:00
libx11
libxcb
libxext
libxinerama
libxkbcommon
libxrandr
libxv
libxxf86vm
2019-02-04 19:16:52 +00:00
vulkan-icd-loader
2019-03-18 18:07:30 +00:00
wayland
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'
2019-03-18 18:07:30 +00:00
'libxinerama: X11 support'
'libxrandr: X11 support'
2019-02-04 19:16:52 +00:00
'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'
2019-03-18 18:07:30 +00:00
'wayland: Wayland support'
2019-02-04 19:16:52 +00:00
)
backup=(etc/retroarch.cfg)
2023-03-20 13:27:38 +00:00
_tag=6616b807edea5b56683e9fbca8b003b436c22b13
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
)
2022-02-17 19:31:47 +00:00
b2sums=('SKIP'
'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
2018-11-14 13:40:34 +00:00
patch -Np1 -i ../retroarch-config.patch
2020-06-15 18:31:32 +00:00
git cherry-pick -n 685948368e6b28b97e1b91bdfe5921519359a033 # FS#66843
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 \
--disable-builtinmbedtls \
--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: