blob: 994fdfc87a23b3fb06049807d7605e98d88d8c68 (
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# Maintainer: algebro <algebro at tuta dot io>
pkgname=pcsx-redux-git
_pkgname=pcsx-redux
pkgver=r1966.e277597b
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'
'freetype2'
'sdl2'
'zlib'
)
options=('!buildflags')
makedepends=('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/nodejs/http-parser.git'
'git+https://github.com/serge1/ELFIO.git'
'git+https://github.com/exoticlibraries/libcester.git'
'git+https://github.com/grumpycoders/LuaJIT.git'
'git+https://github.com/luvit/luv.git'
'git+https://github.com/keplerproject/lua-compat-5.3.git'
'git+https://github.com/nothings/stb.git'
'git+https://github.com/wolfpld/tracy.git'
'git+https://github.com/Neargye/magic_enum.git'
'git+https://github.com/Distrotech/ucl.git'
'git+https://github.com/gabomdq/SDL_GameControllerDB'
'pcsx-redux.sh'
'pcsx-redux.desktop'
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'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/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 config submodule.third_party/luajit.url "$srcdir/LuaJIT"
git config submodule.third_party/luv.url "$srcdir/luv"
git config submodule.third_party/stb.url "$srcdir/stb"
git config submodule.third_party/tracy.url "$srcdir/tracy"
git config submodule.third_party/magic_enum.url "$srcdir/magic_enum"
git config submodule.third_party/ucl.url "$srcdir/ucl"
git config submodule.third_party/SDL_GameControllerDB.url "$srcdir/SDL_GameControllerDB"
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/http-parser \
third_party/ELFIO \
third_party/libcester \
third_party/luajit \
third_party/luv \
third_party/stb \
third_party/tracy \
third_party/magic_enum \
third_party/ucl \
third_party/SDL_GameControllerDB
cd third_party/luv
git submodule init
git config submodule.deps/lua-compat-5.3.url "$srcdir/lua-compat-5.3"
git submodule update deps/lua-compat-5.3
}
build() {
cd "$_pkgname"
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"
}
|