blob: 91166c95635673108830a41cfb8ec09825e1ecec (
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
|
# Maintainer: algebro <algebro at tuta dot io>
pkgname=pcsx-redux-git
_pkgname=pcsx-redux
pkgver=r1272.6c73f79
pkgrel=1
pkgdesc='Modern fork of the pcsxr PlayStation 1 emulator focused on reverse engineering and homebrew development'
arch=('x86_64')
url='https://github.com/grumpycoders/pcsx-redux.git'
license=('GPL2')
depends=('ffmpeg'
'glfw-x11'
'libuv'
'sdl2'
'zlib'
)
makedepends=('clang'
'git'
'make'
'pkg-config'
)
source=("${_pkgname}::git+https://github.com/grumpycoders/pcsx-redux.git"
'git+https://github.com/ocornut/imgui.git'
'git+https://github.com/ocornut/imgui_club.git'
'git+https://github.com/grumpycoders/ImGuiColorTextEdit.git'
'git+https://github.com/mateidavid/zstr.git'
'git+https://github.com/grumpycoders/uC-sdk.git'
'git+https://github.com/google/googletest.git'
'git+https://github.com/fmtlib/fmt.git'
'git+https://github.com/skypjack/uvw.git'
'git+https://github.com/nodejs/http-parser.git'
'git+https://github.com/serge1/ELFIO.git'
'git+https://github.com/exoticlibraries/libcester.git'
'pcsx-redux.sh'
'pcsx-redux.desktop'
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'21db8ce528f3240388d55d1f309ebc6060bb1145cce50553659e73fb6f89d326'
'9061d4428ba69e06e3a540df6700a637cc28e740f95b07ca46f2cbcc8cdd347c')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed 's/^v//;s/-/./g'
}
prepare() {
cd "$_pkgname"
git submodule init
git config submodule.third_party/imgui.url "$srcdir/imgui"
git config submodule.third_party/imgui_club.url "$srcdir/imgui_club"
git config submodule.third_party/ImGuiColorTextEdit.url "$srcdir/ImGuiColorTextEdit"
git config submodule.third_party/zstr.url "$srcdir/zstr"
git config submodule.third_party/uC-sdk.url "$srcdir/uC-sdk"
git config submodule.third_party/googletest.url "$srcdir/googletest"
git config submodule.third_party/fmt.url "$srcdir/fmt"
git config submodule.third_party/uvw.url "$srcdir/uvw"
git config submodule.third_party/http-parser.url "$srcdir/http-parser"
git config submodule.third_party/ELFIO.url "$srcdir/ELFIO"
git config submodule.third_party/libcester.url "$srcdir/libcester"
git submodule update third_party/imgui \
third_party/imgui_club \
third_party/ImGuiColorTextEdit \
third_party/zstr \
third_party/uC-sdk \
third_party/googletest \
third_party/fmt \
third_party/uvw \
third_party/http-parser \
third_party/ELFIO \
third_party/libcester
}
build() {
cd "$_pkgname"
CC=/usr/bin/clang CXX=/usr/bin/clang++ make
}
package() {
install -Dm755 pcsx-redux.sh "$pkgdir/usr/bin/pcsx-redux"
install -Dm644 pcsx-redux.desktop "$pkgdir/usr/share/applications/pcsx-redux.desktop"
install -Dm755 "$_pkgname/pcsx-redux" "$pkgdir/opt/pcsx-redux/pcsx-redux"
}
|