From ef796073b456a8e8135c966f8b0b262b0d345fe0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 28 May 2014 22:21:23 +0200 Subject: [PATCH] New package: ppsspp-0.9.8 - A portable and fast PSP emulator. --- srcpkgs/ppsspp/files/ppsspp-headless.sh | 3 ++ srcpkgs/ppsspp/files/ppsspp-sdl.sh | 3 ++ srcpkgs/ppsspp/template | 51 +++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 srcpkgs/ppsspp/files/ppsspp-headless.sh create mode 100644 srcpkgs/ppsspp/files/ppsspp-sdl.sh create mode 100644 srcpkgs/ppsspp/template diff --git a/srcpkgs/ppsspp/files/ppsspp-headless.sh b/srcpkgs/ppsspp/files/ppsspp-headless.sh new file mode 100644 index 00000000000..aa1106a7983 --- /dev/null +++ b/srcpkgs/ppsspp/files/ppsspp-headless.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/share/ppsspp +exec ./PPSSPPHeadless $@ diff --git a/srcpkgs/ppsspp/files/ppsspp-sdl.sh b/srcpkgs/ppsspp/files/ppsspp-sdl.sh new file mode 100644 index 00000000000..a403cbbef62 --- /dev/null +++ b/srcpkgs/ppsspp/files/ppsspp-sdl.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /usr/share/ppsspp +exec ./PPSSPPSDL $@ diff --git a/srcpkgs/ppsspp/template b/srcpkgs/ppsspp/template new file mode 100644 index 00000000000..2d828e83422 --- /dev/null +++ b/srcpkgs/ppsspp/template @@ -0,0 +1,51 @@ +# Template file for 'ppsspp' +pkgname=ppsspp +version=0.9.8 +revision=1 +build_wrksrc="${pkgname}-${version}" +build_style=cmake +configure_args="-DHEADLESS=1" +hostmakedepends="cmake pkg-config" +makedepends="zlib-devel libpng-devel SDL-devel desktop-file-utils" +depends="desktop-file-utils" +short_desc="A fast and portable PSP emulator" +maintainer="Juan RP " +license="GPL-2" +homepage="http://www.ppsspp.org/" +create_wrksrc=yes +distfiles=" + https://github.com/hrydgard/ppsspp/archive/v${version}.tar.gz + https://github.com/hrydgard/ppsspp-ffmpeg/archive/6cffc1f6012e0091f46c031a023e877d621f83e4.tar.gz + https://github.com/hrydgard/ppsspp-lang/archive/ec04fc188efc08ccf1c43ec337145f706e1fb807.tar.gz + https://github.com/hrydgard/native/archive/6b8a8a6c8d5277b295d5f0d53e5b218cb987a296.tar.gz" +checksum=" + 8f1dfda85a5aa5c8be9c1556f897f3bbdc948553b4ebc42c86e6fa4fb2aad1d0 + c44cde0938a7a03d5f03ddcc529deaf04d0478951189fef9af685e5f3c91a82f + 22517a9a489ebc8392b95edb0dbe90f804fafc46f43f96ef081f953cec726d74 + 93932843b2bd59f264a2804f3c9fbfa0c6b524a70fae57bee8fafd43b5bcb670" + +pre_configure() { + # copy submodules to right location + cp -rup ${wrksrc}/native-*/* ${wrksrc}/${pkgname}-${version}/native + cp -rup ${wrksrc}/ppsspp-lang-*/* ${wrksrc}/${pkgname}-${version}/lang + cp -rup ${wrksrc}/ppsspp-ffmpeg-*/linux ${wrksrc}/${pkgname}-${version}/ffmpeg + # disable git versioning + sed 's|find_package(Git)|# &|' -i ${wrksrc}/${pkgname}-${version}/git-version.cmake + rm -rf ${pkgname}-${version}/build +} + +do_install() { + cd build + install -Dm644 ../LICENSE.TXT "$DESTDIR/usr/share/licenses/ppsspp/LICENSE.TXT" + install -Dm644 ../assets/icon.svg "$DESTDIR/usr/share/icons/ppsspp.svg" + install -Dm644 ../Qt/PPSSPP.desktop "$DESTDIR/usr/share/applications/PPSSPP.desktop" + install -Dm755 ${FILESDIR}/ppsspp-sdl.sh "$DESTDIR/usr/bin/ppsspp-sdl" + install -Dm755 ${FILESDIR}/ppsspp-headless.sh "$DESTDIR/usr/bin/ppsspp-headless" + install -Dm755 PPSSPPSDL "$DESTDIR/usr/share/ppsspp/PPSSPPSDL" + install -Dm755 PPSSPPHeadless "$DESTDIR/usr/share/ppsspp/" + cd assets + find . -type f -exec install -Dm644 {} "$DESTDIR/usr/share/ppsspp/assets/"{} \; + + sed -e 's,^Exec=.*,Exec=/usr/bin/ppsspp-sdl,' -i $DESTDIR/usr/share/applications/PPSSPP.desktop + sed -e 's,^Icon=.*,Icon=/usr/share/icons/ppsspp.svg,' -i $DESTDIR/usr/share/applications/PPSSPP.desktop +}