blob: 5a7bc817ac5d70faa75d8fe2ed1076ad850070ec (
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: Tomasz Kalisiak <tomasz.kalisiak@rhythmgame.eu>
pkgname=rhythmgame-git
_pkgname=RhythmGame
pkgver=1.3.18.r52.g2922ecbf8
pkgrel=1
pkgdesc="A customizable BMS player for Windows and Linux – development git build"
arch=(x86_64)
url="https://github.com/Bobini1/RhythmGame"
license=(GPL-3.0-only)
# Keep makepkg's GCC LTO flags out of Rust's native dependencies.
# CMake still enables LTO for RhythmGame itself.
options=(!lto)
depends=(
'qt6-base>=6.10'
qt6-declarative
qt6-multimedia
qt6-svg
qt6-shadertools
qt6-websockets
fmt
spdlog
boost
mimalloc
zstd
libsndfile
alsa-lib
systemd-libs
sdl2
sdl2_image
libxml2
libxkbcommon
qtkeychain-qt6
tbb
sqlite
glibc
libgcc
libstdc++
# aur
miniaudio
magic_enum
sqlitecpp
zlib
zlib-ng
openimageio
libzip
)
makedepends=(
git
cmake
ninja
pkgconf
autoconf-archive
qt6-tools
curl
zip
unzip
clang
rustup
)
provides=(rhythmgame)
conflicts=(rhythmgame)
source=(
"${_pkgname}::git+https://github.com/Bobini1/RhythmGame.git"
"vcpkg::git+https://github.com/microsoft/vcpkg.git"
"vcpkg.json"
"x64-linux-arch.cmake"
)
sha256sums=('SKIP'
'SKIP'
'f091398a474bba833a9ab0773f70e5bd410c5d37741563872babb5c97628932e'
'eea0058ba134127f03c054a8dc5df7cce92ab7d9981fbbf00cce6ce92ec7134c')
pkgver() {
cd "${srcdir}/${_pkgname}"
# Format: tagged_version.r<revcount>.g<shortsha>
local tag
tag=$(git describe --tags --abbrev=0 2>/dev/null || echo 1.1.0)
local revcount
revcount=$(git rev-list --count "${tag}"..HEAD 2>/dev/null || echo 0)
short=$(git rev-parse --short HEAD)
printf "%s.r%s.g%s" "${tag#v}" "${revcount}" "${short}"
}
prepare() {
rustup toolchain install 1.96.0 --profile minimal
cd "${srcdir}/vcpkg"
./bootstrap-vcpkg.sh -disableMetrics
cd "$srcdir/$_pkgname"
cp "$srcdir/vcpkg.json" .
}
build() {
cd "${srcdir}/${_pkgname}"
cmake -B build -S . \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DRhythmGame_DEVELOPER_MODE=OFF \
-DRhythmGame_USE_BACKBEAT=ON \
-DVCPKG_FEATURE_FLAGS=manifests \
-DVCPKG_OVERLAY_PORTS="${srcdir}/${_pkgname}/vcpkgOverlayPorts" \
-DVCPKG_OVERLAY_TRIPLETS="${srcdir}" \
-DVCPKG_TARGET_TRIPLET=x64-linux-arch \
-DVCPKG_HOST_TRIPLET=x64-linux-arch \
-DCMAKE_CXX_STANDARD=23 \
-DUSE_SYSTEM_LIBRARIES=ON \
-Wno-dev \
-DCMAKE_TOOLCHAIN_FILE="${srcdir}/vcpkg/scripts/buildsystems/vcpkg.cmake"
cmake --build build
}
package() {
cd "${srcdir}/${_pkgname}"
DESTDIR="${pkgdir}" cmake --install build
}
|