blob: 077cba5fa488d39a41e42c61162a7ff7c8cbae9a (
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
|
_pkgname=flycast
pkgname="$_pkgname"
pkgver=2.0
pkgrel=1
pkgdesc='A multi-platform Sega Dreamcast, Naomi and Atomiswave emulator'
arch=('x86_64' 'i686')
url="https://github.com/flyinghead/flycast"
license=('GPL2')
depends=('libgl' 'libzip' 'zlib' 'alsa-lib')
makedepends=('git' 'cmake' 'python' 'systemd')
provides=("$_pkgname" reicast)
conflicts=("$_pkgname")
source=(
"$_pkgname"::"git+$url.git#tag=v$pkgver"
"SDL"::"git+https://github.com/libsdl-org/SDL"
"libchdr"::"git+https://github.com/rtissera/libchdr"
"luabridge"::"git+https://github.com/vinniefalco/LuaBridge"
"breakpad"::"git+https://github.com/flyinghead/mingw-breakpad"
)
md5sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
prepare() {
cd "$srcdir/$_pkgname"
# git submodule update --init --recursive
for submodule in core/deps/{SDL,libchdr,luabridge,breakpad}; do
git submodule init ${submodule}
git submodule set-url ${submodule} "${srcdir}/${submodule##*/}"
git -c protocol.file.allow=always submodule update ${submodule}
done
}
build() {
cd "$srcdir/$_pkgname"
cmake -B build -S "$srcdir/$_pkgname" \
-DCMAKE_INSTALL_PREFIX='/usr'
make -C build
}
package() {
cd "$srcdir/$_pkgname/build"
make DESTDIR="${pkgdir}" install
}
|