ppsspp-git/PKGBUILD

101 lines
3.0 KiB
Bash
Raw Normal View History

2015-06-08 02:11:15 -07:00
# 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')
2016-11-08 01:54:43 -08:00
pkgver=1.3.r146.9c08b60
2015-06-08 02:11:15 -07:00
pkgrel=1
pkgdesc='A PSP emulator written in C++'
arch=('i686' 'x86_64')
url='http://www.ppsspp.org/'
license=('GPL2')
depends=('gcc-libs' 'glew' 'glibc' 'libgl' 'libzip' 'sdl2' 'zlib'
'libavcodec.so' 'libavformat.so' 'libavutil.so' 'libswresample.so'
'libswscale.so')
2016-11-08 01:54:43 -08:00
makedepends=('cmake' 'git' 'glu' 'qt5-multimedia' 'qt5-tools')
2015-06-08 02:11:15 -07:00
source=('git+https://github.com/hrydgard/ppsspp.git'
'git+https://github.com/hrydgard/ppsspp-lang.git'
'ppsspp-armips::git+https://github.com/Kingcom/armips.git'
'ppsspp.desktop')
2015-06-08 02:11:15 -07:00
sha256sums=('SKIP'
'SKIP'
'SKIP'
'1c332702d0aeced07df7e12ba8530bc3f19a52bc76c355f6c84c141becfd46d8')
2015-06-08 02:11:15 -07:00
pkgver() {
cd ppsspp
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
}
prepare() {
cd ppsspp
2016-11-08 01:54:43 -08:00
for submodule in assets/lang ext/armips; do
2015-06-08 02:11:15 -07:00
git submodule init ${submodule}
git config submodule.${submodule}.url ../ppsspp-${submodule#*/}
git submodule update ${submodule}
done
2015-09-07 00:26:32 -07:00
for ui in sdl qt; do
if [[ -d build-$ui ]]; then
rm -rf build-$ui
fi
mkdir build-$ui
done
2015-06-08 02:11:15 -07:00
}
build() {
2015-09-07 00:26:32 -07:00
cd ppsspp/build-sdl
2015-06-08 02:11:15 -07:00
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
2016-11-08 01:54:43 -08:00
-DCMAKE_SKIP_RPATH='ON' \
-DUSE_SYSTEM_FFMPEG='ON'
2015-06-08 02:11:15 -07:00
make
2015-09-07 00:26:32 -07:00
cd ../build-qt
2015-06-08 02:11:15 -07:00
2016-11-08 01:54:43 -08:00
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_SKIP_RPATH='ON' \
-DUSE_SYSTEM_FFMPEG='ON' \
-DUSING_QT_UI='ON'
2015-06-08 02:11:15 -07:00
make
}
package_ppsspp-git() {
provides=('ppsspp')
conflicts=('ppsspp' 'ppsspp-qt' 'ppsspp-qt-git')
2015-09-07 00:26:32 -07:00
cd ppsspp/build-sdl
2015-06-08 02:11:15 -07:00
2016-11-08 01:54:43 -08:00
install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,icons,man/man1,pixmaps,ppsspp}}
2015-06-08 02:11:15 -07:00
install -m 755 PPSSPPSDL "${pkgdir}"/usr/bin/ppsspp
cp -dr --no-preserve='ownership' assets "${pkgdir}"/usr/share/ppsspp/
2016-11-08 01:54:43 -08:00
cp -dr --no-preserve='ownership' ../icons/hicolor "${pkgdir}"/usr/share/icons/
install -m 644 ../icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg
2015-09-26 02:35:47 -07:00
install -m 644 ../../ppsspp.desktop "${pkgdir}"/usr/share/applications/
2015-06-08 02:11:15 -07:00
}
package_ppsspp-qt-git() {
2016-11-08 01:54:43 -08:00
depends+=('qt5-base' 'qt5-multimedia')
2015-06-08 02:11:15 -07:00
provides=('ppsspp')
conflicts=('ppsspp' 'ppsspp-git' 'ppsspp-qt')
cd ppsspp/build-qt
install -dm 755 "${pkgdir}"/usr/{bin,share/{applications,man/man1,pixmaps}}
2016-11-08 01:54:43 -08:00
install -m 755 PPSSPPQt "${pkgdir}"/usr/bin/ppsspp
cp -dr --no-preserve='ownership' assets "${pkgdir}"/usr/share/ppsspp/
cp -dr --no-preserve='ownership' ../icons/hicolor "${pkgdir}"/usr/share/icons/
install -m 644 ../icons/icon-512.svg "${pkgdir}"/usr/share/pixmaps/ppsspp.svg
2015-09-26 02:35:47 -07:00
install -m 644 ../../ppsspp.desktop "${pkgdir}"/usr/share/applications/
2015-06-08 02:11:15 -07:00
}
# vim ts=2 sw=2 et: