blob: 388d750c8831ef6c4109007fd49f21f1e02b0ed6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
# Based on ppsspp package
_pkgbase=ppsspp
pkgbase=ppsspp-git
pkgname=('ppsspp-git' 'ppsspp-qt-git')
pkgver=r16696.14fd313
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')
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'28c4fcfb1a42f17c5a6bd5909696a53481efcd3571b0a30b1e1e535015d6aa1a')
pkgver() {
cd ppsspp
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
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
}
build() {
cd ppsspp
if [[ -d build ]]; then
rm -rf build
fi
mkdir build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_SKIP_RPATH='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=("${_pkgbase}")
conflicts=("${_pkgbase}" "${_pkgbase}-qt" "${_pkgbase}-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=("${_pkgbase}")
conflicts=("${_pkgbase}" "${_pkgbase}-qt" "${_pkgbase}-qt-git")
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:
|