blob: 24a17eff3b6a9fc288e3101a1f16ccf4201f9be4 (
plain)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
# Maintainer: David Wu <xdavidwuph@gmail.com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Ben Reedy <thebenj88@gmail.com>
# Contributor: Clement Guerin <geecko.dev@free.fr>
# Contributor: Thiago Kenji Okada <thiago.mast3r@gmail.com>
# Contributor: uberushaximus <uberushaximus@gmail.com>
pkgbase=ppsspp-git
pkgname=(
ppsspp-git
ppsspp-headless-git
ppsspp-qt-git
ppsspp-common-git
)
pkgver=1.10.3.r976.870685d8a
pkgrel=1
pkgdesc='A PSP emulator written in C++'
arch=(x86_64)
url=http://www.ppsspp.org/
license=(GPL2)
depends=(
glew
glibc
libgl
sdl2
zlib
snappy
)
makedepends=(
cmake
git
libglvnd
libzip
python
qt5-tools
qt5-multimedia
)
source=(
git+https://github.com/hrydgard/ppsspp.git
git+https://github.com/Kingcom/armips.git
git+https://github.com/discordapp/discord-rpc.git
ppsspp-ffmpeg::git+https://github.com/hrydgard/ppsspp-ffmpeg.git
ppsspp-glslang::git+https://github.com/hrydgard/glslang.git
git+https://github.com/hrydgard/ppsspp-lang.git
git+https://github.com/Tencent/rapidjson.git
git+https://github.com/KhronosGroup/SPIRV-Cross.git
armips-tinyformat::git+https://github.com/Kingcom/tinyformat.git
git+https://github.com/hrydgard/miniupnp.git
ppsspp.desktop
ppsspp-qt.desktop
ppsspp-flags.patch
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'77a88e75f3c090856442b11c8d3f24ed95cc9ca0da1e3f22a40b700b30a3a7b7'
'7456207ba3759ee93709e25b7bfce5b560a8cb432e2d578ef0f98cb6da6c4d15'
'6694643d96dae673f01555637139468eb277f3379afbcceccad3f7e0ae670278')
pkgver() {
cd ppsspp
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
}
prepare() {
cd ppsspp
patch -Np1 -i ../ppsspp-flags.patch
for submodule in assets/lang ext/glslang ffmpeg; do
git submodule init ${submodule}
git config submodule.${submodule}.url ../ppsspp-${submodule#*/}
git submodule update ${submodule}
done
for submodule in ext/{armips,discord-rpc,rapidjson,SPIRV-Cross,miniupnp}; do
git submodule init ${submodule}
git config submodule.${submodule}.url ../${submodule#*/}
git submodule update ${submodule}
done
pushd ext/armips
for submodule in ext/tinyformat; do
git submodule init ${submodule}
git config submodule.${submodule}.url ../../../armips-${submodule#*/}
git submodule update ${submodule}
done
popd
for ui in sdl qt; do
if [[ -d build-$ui ]]; then
rm -rf build-$ui
fi
mkdir build-$ui
done
}
build() {
cd ppsspp/build-sdl
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DHEADLESS=ON \
-DUSE_SYSTEM_LIBZIP=ON \
-DUSE_SYSTEM_SNAPPY=ON \
-DOpenGL_GL_PREFERENCE=GLVND
make
cd ../build-qt
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_SYSTEM_LIBZIP=ON \
-DUSING_QT_UI=ON \
-DUSE_SYSTEM_SNAPPY=ON \
-DOpenGL_GL_PREFERENCE=GLVND
make
}
package_ppsspp-git() {
depends+=(
hicolor-icon-theme
libzip
ppsspp-common-git
)
provides=(ppsspp)
conflicts=(ppsspp)
cd ppsspp/build-sdl
install -dm 755 "${pkgdir}"/usr/{bin,share/applications}
install -m 755 PPSSPPSDL "${pkgdir}"/usr/bin/
install -m 644 ../../ppsspp.desktop "${pkgdir}"/usr/share/applications/
}
package_ppsspp-headless-git() {
depends+=(
ppsspp-common-git
)
provides=(ppsspp-headless)
conflicts=(ppsspp-headless)
pkgdesc='A PSP emulator written in C++ (headless)'
cd ppsspp/build-sdl
install -dm 755 "${pkgdir}"/usr/bin
install -m 755 PPSSPPHeadless "${pkgdir}"/usr/bin/
}
package_ppsspp-qt-git() {
depends+=(
hicolor-icon-theme
libzip
qt5-base
qt5-multimedia
ppsspp-common-git
)
provides=(ppsspp-qt)
conflicts=(ppsspp-qt)
pkgdesc='A PSP emulator written in C++ (with Qt frontend)'
cd ppsspp/build-qt
install -dm 755 "${pkgdir}"/usr/{bin,share/applications}
install -m 755 PPSSPPQt "${pkgdir}"/usr/bin/
install -m 644 ../../ppsspp-qt.desktop "${pkgdir}"/usr/share/applications/
}
package_ppsspp-common-git() {
depends=()
pkgdesc='A PSP emulator written in C++ (common assets)'
cd ppsspp/build-qt
install -dm 755 "${pkgdir}"/usr/share/{applications,icons,pixmaps,ppsspp}
cp -dr --no-preserve=ownership assets "${pkgdir}"/usr/share/ppsspp/
cp -dr --no-preserve=ownership ../icons/hicolor "${pkgdir}"/usr/share/icons/
install -m 644 ../icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg
}
# vim: ts=2 sw=2 et:
|