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
|
2019-08-26 19:21:11 +00:00
|
|
|
pkgver=1.7.8
|
2019-09-03 18:26:29 +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
|
|
|
|
libass.so
|
|
|
|
libavcodec.so
|
|
|
|
libavformat.so
|
|
|
|
libavutil.so
|
|
|
|
libdrm
|
|
|
|
libfreetype.so
|
|
|
|
libgl
|
|
|
|
libpulse
|
|
|
|
libswresample.so
|
|
|
|
libswscale.so
|
|
|
|
libudev.so
|
|
|
|
libusb-1.0.so
|
|
|
|
mesa
|
|
|
|
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'
|
|
|
|
'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)
|
|
|
|
source=(
|
2019-09-03 18:26:29 +00:00
|
|
|
git+https://github.com/libretro/RetroArch.git#tag=37515372787c3fbd295a25e8a89b85383faab2b6
|
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
|
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 \
|
|
|
|
--prefix='/usr' \
|
|
|
|
--disable-cg \
|
|
|
|
--disable-jack \
|
|
|
|
--disable-oss \
|
2017-02-04 18:34:00 +00:00
|
|
|
--disable-sdl \
|
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:
|