2023-10-27 18:40:15 +02:00
|
|
|
_pkgname=pianobooster
|
|
|
|
pkgname=pianobooster-custom
|
2022-12-12 13:56:19 +01:00
|
|
|
pkgdesc='A MIDI file player that teaches you how to play the piano (with custom, experimental patches)'
|
2024-03-01 12:49:08 +01:00
|
|
|
pkgver=1391.dfc69f1
|
2022-12-12 13:56:19 +01:00
|
|
|
pkgrel=1
|
2024-03-07 00:26:01 +01:00
|
|
|
depends=('ftgl' 'hicolor-icon-theme' 'qt6-base' 'libfluidsynth.so' 'librtmidi.so' 'libqtutilities-git.so')
|
2023-06-22 21:19:57 +02:00
|
|
|
makedepends=('git' 'cmake' 'clang' 'qt6-tools' 'qt6-declarative' 'ninja')
|
2022-12-20 18:08:35 +01:00
|
|
|
optdepends=('qt6-translations')
|
2022-12-12 13:56:19 +01:00
|
|
|
conflicts=('pianobooster')
|
|
|
|
arch=('x86_64')
|
2023-06-05 23:05:31 +02:00
|
|
|
url='https://github.com/Martchus/PianoBooster'
|
2022-12-12 13:56:19 +01:00
|
|
|
license=('GPL3')
|
2022-12-20 18:08:35 +01:00
|
|
|
source=("${_pkgname}::${MARTCHUS_GIT_URL_PREFIX:-git+https://github.com/Martchus}/PianoBooster.git#branch=custom")
|
2022-12-12 13:56:19 +01:00
|
|
|
sha256sums=(SKIP)
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
2023-06-05 23:05:31 +02:00
|
|
|
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
2022-12-12 13:56:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build () {
|
2023-07-03 15:02:11 +02:00
|
|
|
cmake -G Ninja -B build -S "${srcdir}/${_pkgname}" \
|
2022-12-12 13:56:19 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DUSE_SYSTEM_FONT=ON \
|
|
|
|
-DUSE_JACK=ON \
|
2023-06-12 23:44:35 +02:00
|
|
|
-DWITH_INTERNAL_FLUIDSYNTH=ON \
|
2023-07-03 15:02:11 +02:00
|
|
|
-DCONFIGURATION_PACKAGE_SUFFIX=-git \
|
2024-03-07 00:26:01 +01:00
|
|
|
-DCONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES=-git \
|
2023-07-03 22:04:57 +02:00
|
|
|
-DBUILTIN_TRANSLATIONS:BOOL=ON \
|
2023-06-05 23:05:31 +02:00
|
|
|
-DQT_PACKAGE_PREFIX=Qt6 \
|
2023-07-03 15:02:11 +02:00
|
|
|
-DWITH_MAN=ON
|
2022-12-12 13:56:19 +01:00
|
|
|
VERBOSE=1 cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package () {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
}
|