PKGBUILDs/community/retroarch/PKGBUILD

120 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
2021-11-12 14:00:10 +00:00
pkgver=1.9.13.1
2021-07-27 14:25:41 +00:00
pkgrel=1
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
2019-10-26 01:37:27 +00:00
flac
2019-02-04 19:16:52 +00:00
libass.so
libavcodec.so
libavformat.so
libavutil.so
libdrm
libfreetype.so
libgl
libpulse
libswresample.so
libswscale.so
libudev.so
libusb-1.0.so
2019-10-26 01:37:27 +00:00
mbedtls
2019-02-04 19:16:52 +00:00
mesa
2019-10-26 01:37:27 +00:00
miniupnpc
2019-02-04 19:16:52 +00:00
openal
qt5-base
sdl2
v4l-utils
zlib
)
makedepends=(
git
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=(
'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)
2021-11-12 14:00:10 +00:00
_tag=1280151d13fd52d6c94f5592d27f5ba0b70dfd86
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
)
sha256sums=(
SKIP
7857cff30c45721b66666828ca9edbb2923817c6c64591be3f58fe019277103e
)
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
2017-05-19 18:01:51 +00:00
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-builtinminiupnpc \
--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: