blob: 756e3d25d34c8d522dd0229d520fc2311cd86db8 (
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
128
129
130
131
132
133
134
135
136
137
138
139
|
# Maintainer: Alexandre Bouvier <contact@amb.tf>
_pkgname=azahar
pkgname=$_pkgname-git
pkgver=r10283.bb82ba76d
pkgrel=1
pkgdesc="Nintendo 3DS emulator based on Citra"
arch=('x86_64')
url="https://azahar-emu.org/"
license=('GPL-2.0-or-later')
depends=(
'crypto++'
'enet'
'gcc-libs'
'glibc'
'glslang'
'hicolor-icon-theme'
'qt6-base'
'qt6-multimedia'
'sdl2'
)
makedepends=(
'catch2'
'cmake'
'cpp-jwt'
'cubeb'
'dynarmic'
'ffmpeg4.4'
'fmt'
'git'
'libbacktrace'
'libinih'
'libusb'
'nlohmann-json'
'openal'
'openssl'
'qt6-tools'
'rapidjson'
'robin-map'
'spirv-headers'
'vulkan-headers'
'vulkan-memory-allocator'
'xbyak'
'zstd'
)
provides=("$_pkgname=${pkgver#r}")
conflicts=("$_pkgname")
options=('!lto')
source=(
"$_pkgname::git+https://github.com/azahar-emu/azahar.git"
"$_pkgname-boost::git+https://github.com/azahar-emu/ext-boost.git"
"$_pkgname-compatibility-list::git+https://github.com/azahar-emu/compatibility-list.git"
"$_pkgname-discord-rpc::git+https://github.com/azahar-emu/discord-rpc.git"
"$_pkgname-sirit::git+https://github.com/azahar-emu/sirit.git"
"dds-ktx::git+https://github.com/septag/dds-ktx.git"
"faad2::git+https://github.com/knik0/faad2.git"
"lodepng::git+https://github.com/lvandeve/lodepng.git"
"nihstro::git+https://github.com/neobrain/nihstro.git"
"soundtouch::git+https://codeberg.org/soundtouch/soundtouch.git"
"teakra::git+https://github.com/wwylele/teakra.git"
)
b2sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd $_pkgname
git config submodule.boost.url ../$_pkgname-boost
git config submodule.compatibility-list.url ../$_pkgname-compatibility-list
git config submodule.dds-ktx.url ../dds-ktx
git config submodule.discord-rpc.url ../$_pkgname-discord-rpc
git config submodule.faad2.url ../faad2
git config submodule.lodepng.url ../lodepng
git config submodule.nihstro.url ../nihstro
git config submodule.sirit.url ../$_pkgname-sirit
git config submodule.soundtouch.url ../soundtouch
git config submodule.teakra.url ../teakra
git -c protocol.file.allow=always submodule update
sed -i '/check_submodules_present()/d' CMakeLists.txt
sed -i '/FORTIFY_SOURCE/d' src/CMakeLists.txt
sed -i 's/citra-qt\.desktop/azahar.desktop/' CMakeLists.txt
sed -i 's/(UNIX)/(FALSE)/' CMakeLists.txt
}
build() {
cmake -B build -S $_pkgname \
-DCITRA_USE_PRECOMPILED_HEADERS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_INCLUDE_PATH="/usr/include/ffmpeg4.4" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDISABLE_SYSTEM_BOOST=ON \
-DDISABLE_SYSTEM_CPP_HTTPLIB=ON \
-DDISABLE_SYSTEM_LODEPNG=ON \
-DDISABLE_SYSTEM_SOUNDTOUCH=ON \
-DENABLE_QT_TRANSLATION=ON \
-DENABLE_QT_UPDATER=OFF \
-DENABLE_TESTS="$CHECKFUNC" \
-DSIRIT_USE_SYSTEM_SPIRV_HEADERS=ON \
-DUSE_DISCORD_PRESENCE=ON \
-DUSE_SYSTEM_LIBS=ON \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build
}
package() {
depends+=(
'libbacktrace.so'
'libcrypto.so'
'libcubeb.so'
'libdynarmic.so'
'libfmt.so'
'libopenal.so'
'libssl.so'
'libusb-1.0.so'
'libzstd.so'
)
# shellcheck disable=SC2154
DESTDIR="$pkgdir" cmake --install build
}
|