blob: e5b032518735c1e3c3b5e26c81c4312967c10210 (
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
|
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=ppsspp
pkgver=1.8.0
pkgrel=0
pkgdesc="Fast and portable PSP emulator"
url="https://www.ppsspp.org/"
arch="x86_64" # only available on x86_64 due to compiling problems
_armips_commit="7885552b208493a6a0f21663770c446c3ba65576"
_discord_commit="3d3ae7129d17643bc706da0a2eea85aafd10ab3a"
_glslang_commit="f9d08a25fbe17e0677a89d398f4d7f232339c3f9"
_spirv_cross_commit="be7425ef70231ab82930331959ab487d605d0482"
_rapidjson_commit="73063f5002612c6bf64fe24f851cd5cc0d83eef9"
_lang_commit="03707d64bffc594d5707780a34ada77e8f43cdc0"
_ffmpeg_commit="7472c903ec771c00af9925097e8d37075e9a379f"
license="GPL-2.0-only"
makedepends="make glew-dev libzip-dev snappy-dev mesa-dev qt5-qtbase-dev zlib-dev sdl2-dev cmake coreutils"
options="!check" # make check not implemented
source="ppsspp-$pkgver.tar.gz::https://github.com/hrydgard/ppsspp/archive/v$pkgver.tar.gz
ppsspp-$pkgver-armips.tar.gz::https://github.com/Kingcom/armips/archive/$_armips_commit.tar.gz
ppsspp-$pkgver-discord-rpc.tar.gz::https://github.com/discordapp/discord-rpc/archive/$_discord_commit.tar.gz
ppsspp-$pkgver-glslang.tar.gz::https://github.com/hrydgard/glslang/archive/$_glslang_commit.tar.gz
ppsspp-$pkgver-SPIRV-Cross.tar.gz::https://github.com/KhronosGroup/SPIRV-Cross/archive/$_spirv_cross_commit.tar.gz
ppsspp-$pkgver-rapidjson.tar.gz::https://github.com/Tencent/rapidjson/archive/$_rapidjson_commit.tar.gz
ppsspp-$pkgver-lang.tar.gz::https://github.com/hrydgard/ppsspp-lang/archive/$_lang_commit.tar.gz
ppsspp-$pkgver-ffmpeg.tar.gz::https://github.com/hrydgard/ppsspp-ffmpeg/archive/$_ffmpeg_commit.tar.gz
ppsspp.desktop
ppsspp
ppsspp-version.patch
ppsspp-headless
"
prepare() {
default_prepare
# adding submodules needed by ppsspp
mv "$srcdir/"armips-$_armips_commit/* "$builddir"/ext/armips/
mv "$srcdir/"discord-rpc-$_discord_commit/* "$builddir"/ext/discord-rpc/
mv "$srcdir/"glslang-$_glslang_commit/* "$builddir"/ext/glslang/
mv "$srcdir/"rapidjson-$_rapidjson_commit/* "$builddir"/ext/rapidjson/
mv "$srcdir/"SPIRV-Cross-$_spirv_cross_commit/* "$builddir"/ext/SPIRV-Cross/
mv "$srcdir/"$pkgname-lang-$_lang_commit/* "$builddir"/assets/lang/
mv "$srcdir/"$pkgname-ffmpeg-$_ffmpeg_commit/* "$builddir"/ffmpeg
cd "$builddir"/ffmpeg
./linux_x86-64.sh
}
build() {
mkdir build-qt
cd build-qt
export LANG=C y LC_ALL=C
cmake .. \
-DUSING_QT_UI=ON \
-DHEADLESS=ON
make
}
package() {
mkdir -p "$pkgdir"/usr/bin
install -m 755 $srcdir/ppsspp "$pkgdir"/usr/bin/ppsspp
install -m 755 $srcdir/ppsspp-headless "$pkgdir"/usr/bin/ppsspp-headless
mkdir -p "$pkgdir"/usr/share/ppsspp
mv build-qt/assets "$pkgdir"/usr/share/ppsspp
cp -Rp build-qt/PPSSPPQt "$pkgdir"/usr/share/ppsspp
cp -Rp build-qt/PPSSPPHeadless "$pkgdir"/usr/share/ppsspp
mkdir -p "$pkgdir"/usr/share/applications
install -m 644 $srcdir/ppsspp.desktop "$pkgdir"/usr/share/applications/ppsspp.desktop
mkdir -p "$pkgdir"/usr/share/pixmaps
install -m 644 icons/icon-512.svg "$pkgdir"/usr/share/pixmaps/ppsspp.svg
}
sha512sums="c49cd9978e115ae0d76c34d125cfd8fe65556aa25f3dabcc0d9f8891d0853fe72e69b20f8540cf2d7be8dbfef9d1baa213147ed965e3e1bc37f230a3919a5384 ppsspp-1.8.0.tar.gz
2a94e2c7b7280c00a39c8fc92d81ed15fc4b3270a124ef882e3cd8878db6ec827aefa06b0e646a60916636a95e4ebfa886e9878ba70c6bcfcd048def457368be ppsspp-1.8.0-armips.tar.gz
17fb5de5d5afea9b7e0cdc116d5e3611b147eb2cde3a295a1a4ceb688bceb93d54feb2e479d511ce39d53a1380462a75dcdf6be9ddc2cece9d44b7f8ff7504af ppsspp-1.8.0-discord-rpc.tar.gz
6360a09a7fd69652f84c4b85e1705baf9fecfe53c862625e22e5da1574fa4c2d4d14054bdfd49c5096ce93b371db286cefa28981550b6732ddaac64a7ed09c34 ppsspp-1.8.0-glslang.tar.gz
9eefacbb6eeb2a010344189ebb2e85e3a69956b3f5f9a5d909d11ffc72030729a532f3db70a5f32cac2a0a3df98d648207ddb052f36e1ab2b53586722ee998e8 ppsspp-1.8.0-SPIRV-Cross.tar.gz
3472e129e710bf5343b8b27a61581a1480c8096493e466440b62702d8b5353745d561931f72b5405a736ad92525be3843ea1cf4b5ea5839721cc6d6b358f19bc ppsspp-1.8.0-rapidjson.tar.gz
7459c930bf05c9fd53921f977febc24b52025a58ef12c08846beb83d021b08ba5960c91680d5d959a1168534d3d47a0967d7dc38fd0e261bd74529bb445f8c3d ppsspp-1.8.0-lang.tar.gz
5dc1df0c40b624ca68f7e73d757c14801523f0f7063c52896cd0d71b8b5b570b42a120b7cc7427a0fe022801cce1f8f69ce976a759291c5dbbbde3ac671e783a ppsspp-1.8.0-ffmpeg.tar.gz
fb8c6c4a48003dac866b094f4d9d750bf7d1def14c9d3bf7a70f584ba187dacd5e57b29313e302740f5a0ec4bf27b6fea3d5cf27ae12bf6fac06f5a8ab23195b ppsspp.desktop
c22214c15b6e9305f688c25c5997248a6a04c2dc229ea8c2126f0d288be7386134d15fc210e07f70f7eee13b0ab7ff05befd5657de0fc897d947f23c94711cd0 ppsspp
053c478b5a9d3779540bc98b08ff0ad4733ce595ec126fedca40e2050347f89497d5ac6a753fcfac7f7c9f4071fb165bb3ffbdf7cf51595f2a3e0c614886e704 ppsspp-version.patch
6bf0dbe793cadbaa59199d0c0c169609db619ac4bb4bf33f226e5503765a9fb090c919a757b990396d3a744dfa217bc34c3a47e5e601a94da47b351035639113 ppsspp-headless"
|