blob: e58ee68b82488db30bd8e501d0691832b34f793c (
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
|
# Maintainer: Tomasz Kalisiak <tomasz.kalisiak@rhythmgame.eu>
pkgname=rhythmgame-git
_pkgname=RhythmGame
pkgver=1.3.0.r28.gc873fa74
pkgrel=1
pkgdesc="A customizable BMS player for Windows and Linux – development git build"
arch=(x86_64)
url="https://github.com/Bobini1/RhythmGame"
license=(MIT)
depends=(
qt6-base
qt6-declarative
qt6-multimedia
qt6-svg
qt6-shadertools
spdlog
boost
mimalloc
zstd
libsndfile
sdl2
libxml2
libxkbcommon
qtkeychain-qt6
# aur
miniaudio
magic_enum
sqlitecpp
qt6-interfaceframework
zlib-ng
)
makedepends=(
git
cmake
ninja
pkgconf
)
provides=(rhythmgame)
conflicts=(rhythmgame)
source=(
"${_pkgname}::git+https://github.com/Bobini1/RhythmGame.git"
"vcpkg::git+https://github.com/microsoft/vcpkg.git"
"vcpkg.json"
)
sha256sums=('SKIP' 'SKIP' 'bdf6cef84adb0bdb5c5b7a0cd4a10101f633eddab181bb95961ad00bb883bed9')
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() {
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 \
-DVCPKG_FEATURE_FLAGS=manifests \
-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
}
|