summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaxime Gauduin2015-06-08 11:11:15 +0200
committerMaxime Gauduin2015-06-08 11:11:15 +0200
commit25ff094a259d0b6dbfa52809193bcc99f02b2ca7 (patch)
treeded45956b8951cac65c7f62aa3c5d4cb7eff6523 /PKGBUILD
downloadaur-25ff094a259d0b6dbfa52809193bcc99f02b2ca7.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD103
1 files changed, 103 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fd4bda91707
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,103 @@
+# Maintainer: 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-qt-git')
+pkgver=1.0.1.r559.403f6ab
+pkgrel=1
+pkgdesc='A PSP emulator written in C++'
+arch=('i686' 'x86_64')
+url='http://www.ppsspp.org/'
+license=('GPL2')
+depends=('ffmpeg' 'sdl2')
+makedepends=('cmake' 'git' 'glu' 'qt5-tools')
+source=('git+https://github.com/hrydgard/ppsspp.git'
+ 'git+https://github.com/hrydgard/ppsspp-lang.git'
+ 'ppsspp-native::git+https://github.com/hrydgard/native.git'
+ 'ppsspp-armips::git+https://github.com/Kingcom/armips.git'
+ 'ppsspp-ffmpeg.patch'
+ 'ppsspp-gcc5.1.patch')
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ '00ef3d221b3a7e967fc79eaed20664f52fe7d303597130c46198e60b81023f8a'
+ '719f6ae3efa533872f1db5131bc9e7245d7c2e40e776c9869a0820be17f0ac9d')
+
+pkgver() {
+ cd ppsspp
+
+ echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
+}
+
+prepare() {
+ cd ppsspp
+
+ for submodule in native lang ext/armips; do
+ git submodule init ${submodule}
+ git config submodule.${submodule}.url ../ppsspp-${submodule#*/}
+ git submodule update ${submodule}
+ done
+
+ patch -Np1 -i ../ppsspp-ffmpeg.patch
+ patch -Np1 -i ../ppsspp-gcc5.1.patch
+}
+
+build() {
+ cd ppsspp
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+ mkdir build && cd build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_SKIP_RPATH='TRUE' \
+ -DUSE_SYSTEM_FFMPEG='TRUE'
+ make
+
+ cd ..
+
+ if [[ -d build-qt ]]; then
+ rm -rf build-qt
+ fi
+ mkdir build-qt && cd build-qt
+
+ qmake-qt5 CONFIG+='release' CONFIG+='system_ffmpeg' ../Qt/PPSSPPQt.pro
+ make
+}
+
+package_ppsspp-git() {
+ provides=('ppsspp')
+ conflicts=('ppsspp' 'ppsspp-qt' 'ppsspp-qt-git')
+
+ cd ppsspp/build
+
+ install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,man/man1,pixmaps,ppsspp}}
+ install -m 755 PPSSPPSDL "${pkgdir}"/usr/bin/ppsspp
+ cp -dr --no-preserve='ownership' assets "${pkgdir}"/usr/share/ppsspp/
+ install -m 644 ../assets/unix-icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg
+ install -m 644 ../debian/ppsspp.desktop "${pkgdir}"/usr/share/applications/
+ install -m 644 ../debian/ppsspp.1 "${pkgdir}"/usr/share/man/man1/
+}
+
+package_ppsspp-qt-git() {
+ depends+=('qt5-base')
+ provides=('ppsspp')
+ conflicts=('ppsspp' 'ppsspp-git' 'ppsspp-qt')
+
+ cd ppsspp/build-qt
+
+ install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,man/man1,pixmaps}}
+ install -m 755 ppsspp "${pkgdir}"/usr/bin/
+ install -m 644 ../assets/unix-icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg
+ install -m 644 ../debian/ppsspp.desktop "${pkgdir}"/usr/share/applications/
+ install -m 644 ../debian/ppsspp.1 "${pkgdir}"/usr/share/man/man1/
+}
+
+# vim ts=2 sw=2 et: