blob: 575e70475267f64cbd1a2ea6c6bc6c2a370e4ef1 (
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
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
_reponame=flycast
_pkgname=libretro-$_reponame
pkgname=$_pkgname-git
pkgver=2.0.r0.gaa97a6d6
pkgrel=1
pkgdesc="Sega Dreamcast core"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://github.com/flyinghead/flycast"
license=('GPL2')
groups=('libretro')
depends=('libgl' 'libretro-core-info')
makedepends=(
'cmake'
'git'
'glm'
'libchdr'
'libglvnd'
'libzip'
'miniupnpc'
'xbyak'
'xxhash'
'zlib'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"$_reponame::git+$url.git"
'unbundle-libs.patch'
)
b2sums=(
'SKIP'
'e958858e145819df2156856b55b441b960716403c140cf79c6bbec5fbfae06303e27ea42f9fa4d58250046c9700ac04e5d26feb6a469ea9cd9cdda4c471ad896'
)
pkgver() {
cd $_reponame
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $_reponame
patch -Np1 < ../unbundle-libs.patch
rm -r core/deps/libretro-common/include/libchdr
}
build() {
cd $_reponame
cmake -B ../build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_INSTALL_BINDIR=lib/libretro \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBRETRO=ON \
-Wno-dev
cmake --build ../build
}
package() {
depends+=(
'libchdr.so'
'libminiupnpc.so'
'libxxhash.so'
'libzip.so'
)
# shellcheck disable=SC2154
DESTDIR="$pkgdir" cmake --install build
}
|