summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0415167faffb87ee2b7a4fd9cc74d01dc877e632 (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
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=pcsx-redux
pkgver=r6813.b745534e
pkgrel=1
pkgdesc="A collection of tools, research, hardware design, and libraries aiming at development and reverse engineering on the PlayStation 1."
arch=('x86_64')
url="https://github.com/grumpycoders/pcsx-redux"
license=('GPL-2.0-or-later')
depends=('zlib' 'libluv' 'curl' 'gcc-libs' 'capstone' 'fmt' 'llhttp' 'md4c' 'ffmpeg' 'glibc' 'hicolor-icon-theme' 'libuv' 'libx11' 'freetype2' 'libxcb' 'glfw')
makedepends=('git' 'imagemagick')
options=(!lto)
_commit=b745534eb231d3699ec57949f16a9a7bd5b79385
source=("git+$url.git#commit=$_commit"
	"git+https://github.com/ocornut/imgui.git"
	"git+https://github.com/libuv/libuv.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/serge1/ELFIO.git"
	"git+https://github.com/exoticlibraries/libcester.git"
	"luajit::git+https://github.com/grumpycoders/LuaJIT.git"
	"git+https://github.com/luvit/luv.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.git"
	"git+https://github.com/herumi/xbyak.git"
	"git+https://github.com/grumpycoders/zep.git"
	"git+https://github.com/mackron/miniaudio.git"
	"git+https://github.com/TartanLlama/expected.git"
	"git+https://github.com/grumpycoders/vixl.git"
	"git+https://github.com/mity/md4c.git"
	"git+https://github.com/mekhontsev/imgui_md.git"
	"git+https://github.com/iafonov/multipart-parser-c.git"
	"git+https://github.com/grumpycoders/nanovg.git"
	"git+https://github.com/grumpycoders/nanosvg.git"
	"git+https://github.com/lunarmodules/luafilesystem.git"
	"git+https://github.com/grumpycoders/luacov.git"
	"git+https://github.com/bluebird75/luaunit.git"
	"git+https://github.com/uriparser/uriparser.git"
	"git+https://github.com/taocpp/PEGTL.git"
	"git+https://github.com/grumpycoders/psxlua.git"
	#luv submodules
	"git+https://github.com/LuaJIT/LuaJIT.git"
	"git+https://github.com/lua/lua.git"
	"git+https://github.com/keplerproject/lua-compat-5.3.git")
sha256sums=('1c64422ff2c249a61fa76698844cb912c45f015459ece98837518f7c226c42eb'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed 's/^v//;s/-/./g'
}

prepare() {
	cd "$srcdir/$pkgname"
	for _submodule in imgui libuv uC-sdk googletest fmt ELFIO libcester luajit luv stb tracy magic_enum ucl SDL_GameControllerDB xbyak zep miniaudio expected vixl md4c imgui_md multipart-parser-c nanovg nanosvg luafilesystem luacov luaunit uriparser PEGTL psxlua
	do
		git config submodule.third_party/$_submodule.url "$srcdir/$_submodule"
	done
	git -c protocol.file.allow=always submodule update

	cd "$srcdir/$pkgname/third_party/luv"
	for _submodule in libuv lua lua-compat-5.3
	do
		git config submodule.$_submodule.url "$srcdir/$_submodule"
	done
	git config submodule.luajit.url "$srcdir/LuaJIT"
	git -c protocol.file.allow=always submodule update
	# change convert to magick convert
	sed -i 's/convert/magick convert/g' "$srcdir/$pkgname/Makefile"
}

build() {
	cd "$srcdir/$pkgname"
	make
}

package() {
	cd "$srcdir/$pkgname"
	install -dm755 "$pkgdir/usr"
	make DESTDIR="$pkgdir/usr" install
}