blob: b5c6dcedb2f27294a75699b7a357015558b12c34 (
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
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=libretro-melondsds
pkgname=$_pkgname-git
pkgver=1.0.1.r0.g949bb4d
pkgrel=1
pkgdesc="Nintendo DS core"
arch=('aarch64' 'armv7h' 'i486' 'i686' 'pentium4' 'x86_64')
url="https://github.com/JesseTG/melonds-ds"
license=('GPL-3.0-or-later')
groups=('libretro')
depends=('gcc-libs' 'glibc' 'libretro-core-info>=1.16.0.3.r2')
makedepends=('cmake>=3.19' 'git' 'libgl')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=(
"$_pkgname::git+$url.git"
'git+https://github.com/melonDS-emu/melonDS.git'
'git+https://github.com/libretro/libretro-common.git'
'git+https://github.com/andoalon/embed-binaries.git'
'git+https://github.com/g-truc/glm.git'
'git+https://gitlab.freedesktop.org/slirp/libslirp.git'
'git+https://github.com/RobLoach/pntr.git'
'git+https://github.com/fmtlib/fmt.git'
'git+https://github.com/yohhoy/yamc.git'
'git+https://github.com/martinmoene/span-lite.git'
'git+https://github.com/HowardHinnant/date.git'
'git+https://github.com/madler/zlib.git'
)
b2sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
# shellcheck disable=SC2154
cmake -S $_pkgname -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DDATE_REPOSITORY_URL="$srcdir"/date \
-DEMBED_BINARIES_REPOSITORY_URL="$srcdir"/embed-binaries \
-DFMT_REPOSITORY_URL="$srcdir"/fmt \
-DGLM_REPOSITORY_URL="$srcdir"/glm \
-DLIBRETRO_COMMON_REPOSITORY_URL="$srcdir"/libretro-common \
-DLIBSLIRP_REPOSITORY_URL="$srcdir"/libslirp \
-DMELONDS_REPOSITORY_URL="$srcdir"/melonDS \
-DPNTR_REPOSITORY_URL="$srcdir"/pntr \
-DSPAN_LITE_REPOSITORY_URL="$srcdir"/span-lite \
-DYAMC_REPOSITORY_URL="$srcdir"/yamc \
-DZLIB_REPOSITORY_URL="$srcdir"/zlib \
-Wno-dev
cmake --build build
}
package() {
depends+=('libOpenGL.so')
# shellcheck disable=SC2154
install -D -t "$pkgdir"/usr/lib/libretro build/src/libretro/melondsds_libretro.so
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname build/melondsds-LICENSE.txt
}
|