52 lines
2.3 KiB
Plaintext
52 lines
2.3 KiB
Plaintext
# 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 <xtraeme@gmail.com>"
|
|
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
|
|
}
|