aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorVictor Diego Alegandro Diaz Urbaneja <sodomon2@gmail.com>2019-09-27 01:04:46 -0400
committerLeo <thinkabit.ukim@gmail.com>2019-12-26 15:42:01 +0100
commit54f37d1871fbf0e8236d02cc0e86d443297bb824 (patch)
tree73ad504c237181a2cd8051552cd229d01bdca351 /testing
parentbdd27feac65856faa07cdf6ecd86cb7de2312f4a (diff)
downloadaports-54f37d1871fbf0e8236d02cc0e86d443297bb824.tar.gz
aports-54f37d1871fbf0e8236d02cc0e86d443297bb824.tar.bz2
aports-54f37d1871fbf0e8236d02cc0e86d443297bb824.tar.xz
testing/ppsspp:new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/ppsspp/APKBUILD82
-rwxr-xr-xtesting/ppsspp/ppsspp3
-rwxr-xr-xtesting/ppsspp/ppsspp-headless3
-rw-r--r--testing/ppsspp/ppsspp-version.patch9
-rw-r--r--testing/ppsspp/ppsspp.desktop11
5 files changed, 108 insertions, 0 deletions
diff --git a/testing/ppsspp/APKBUILD b/testing/ppsspp/APKBUILD
new file mode 100644
index 0000000000..e5b0325187
--- /dev/null
+++ b/testing/ppsspp/APKBUILD
@@ -0,0 +1,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"
diff --git a/testing/ppsspp/ppsspp b/testing/ppsspp/ppsspp
new file mode 100755
index 0000000000..f15c033b96
--- /dev/null
+++ b/testing/ppsspp/ppsspp
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/ppsspp
+exec ./PPSSPPQt "$@"
diff --git a/testing/ppsspp/ppsspp-headless b/testing/ppsspp/ppsspp-headless
new file mode 100755
index 0000000000..21175735fa
--- /dev/null
+++ b/testing/ppsspp/ppsspp-headless
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/ppsspp
+exec ./PPSSPPHeadless "$@"
diff --git a/testing/ppsspp/ppsspp-version.patch b/testing/ppsspp/ppsspp-version.patch
new file mode 100644
index 0000000000..ec749972c3
--- /dev/null
+++ b/testing/ppsspp/ppsspp-version.patch
@@ -0,0 +1,9 @@
+--- a/git-version.cmake
++++ b/git-version.cmake
+@@ -1,5 +1,5 @@
+ set(GIT_VERSION_FILE "${SOURCE_DIR}/git-version.cpp")
+-set(GIT_VERSION "unknown")
++set(GIT_VERSION "1.8.0")
+ set(GIT_VERSION_UPDATE "1")
+
+ find_package(Git)
diff --git a/testing/ppsspp/ppsspp.desktop b/testing/ppsspp/ppsspp.desktop
new file mode 100644
index 0000000000..c3309ed01c
--- /dev/null
+++ b/testing/ppsspp/ppsspp.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=PPSSPP
+GenericName=PSP Emulator
+Comment=PlayStation Portable Simulator Suitable for Playing Portably (PPSSPP)
+Exec=/usr/bin/ppsspp
+Icon=ppsspp.svg
+Type=Application
+Terminal=false
+Categories=Game;Emulator;QT;