/
package.yml
89 lines (83 loc) · 3.31 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name : retroarch
version : 1.18.0
release : 80
source :
- https://github.com/libretro/RetroArch/archive/v1.18.0.tar.gz : 1087a3c029ee7463cfadafbab0db3d558d6d2ab9cef41f467ed8f372bb42bbd6
- git|https://github.com/libretro/retroarch-assets.git : 923b711dc6772a168d83dc8915e9260730fcf3a1
license : GPL-3.0-or-later
component : games.emulator
homepage : https://retroarch.com
summary : RetroArch is the official reference frontend for the libretro API
description: |
RetroArch is the reference frontend for the libretro API. Popular examples of implementations for this API includes videogame system emulators and game engines, but also more generalized 3D programs.
clang : yes
builddeps :
- pkgconfig(Qt5Gui)
- pkgconfig(alsa)
- pkgconfig(flac)
- pkgconfig(fontconfig)
- pkgconfig(freetype2)
- pkgconfig(jack)
- pkgconfig(libavcodec)
- pkgconfig(libdecor-0)
- pkgconfig(libpulse)
- pkgconfig(libv4l2)
- pkgconfig(openal)
- pkgconfig(sdl2)
- pkgconfig(vulkan)
- pkgconfig(wayland-egl)
- pkgconfig(wayland-protocols)
- pkgconfig(xinerama)
- pkgconfig(xkbcommon)
- pkgconfig(xrandr)
- pkgconfig(xv)
- pkgconfig(xxf86vm)
- mbedtls-devel
rundeps :
- libdecor
setup : |
%patch -p1 -i $pkgfiles/0001-Set-Solus-Defaults.patch
# Fix appstream generation due to desktop file rename
sed -i "s|retroarch.desktop|org.libretro.RetroArch.desktop|" com.libretro.RetroArch.appdata.xml
./configure --prefix=/usr \
--enable-al \
--enable-alsa \
--enable-dbus \
--enable-ffmpeg \
--enable-freetype \
--enable-jack \
--enable-materialui \
--enable-networking \
--enable-opengl \
--enable-ozone \
--enable-pulse \
--enable-qt \
--enable-sse \
--enable-sdl2 \
--enable-threads \
--enable-v4l2 \
--enable-vulkan \
--enable-wayland \
--enable-x11 \
--enable-zlib \
--disable-builtinflac \
--disable-builtinmbedtls \
--disable-builtinzlib
build : |
%make
%make -C gfx/video_filters
%make -C libretro-common/audio/dsp_filters
install : |
%make_install
# Default configurations are currently handled as source patches. Remove /etc/retroarch.cfg as a user may misleadingly
# modify it and have their changes overwritten on package updates
rm -r $installdir/etc/
install -D -m00644 libretro-common/audio/dsp_filters/*.{dsp,so} -t $installdir/%libdir%/retroarch/filters/audio/
install -D -m00644 gfx/video_filters/*.{filt,so} -t $installdir/%libdir%/retroarch/filters/video/
# Bundle menu assets. This allows users to use Retroarch immediately without having to use the update tool
install -dm 755 $installdir/usr/share/retroarch/assets
cp -dr --preserve=mode,timestamps $sources/retroarch-assets.git/glui $installdir/usr/share/retroarch/assets/
cp -dr --preserve=mode,timestamps $sources/retroarch-assets.git/ozone $installdir/usr/share/retroarch/assets/
cp -dr --preserve=mode,timestamps $sources/retroarch-assets.git/xmb $installdir/usr/share/retroarch/assets/
# Fix Wayland app id
mv $installdir/usr/share/applications/retroarch.desktop $installdir/usr/share/applications/org.libretro.RetroArch.desktop