PKGBUILDs/pianobooster/custom/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

_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)'
pkgver=1391.dfc69f1
2022-12-12 13:56:19 +01:00
pkgrel=1
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')
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}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
2022-12-12 13:56:19 +01:00
}
build () {
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 \
-DWITH_INTERNAL_FLUIDSYNTH=ON \
-DCONFIGURATION_PACKAGE_SUFFIX=-git \
-DCONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES=-git \
-DBUILTIN_TRANSLATIONS:BOOL=ON \
-DQT_PACKAGE_PREFIX=Qt6 \
-DWITH_MAN=ON
2022-12-12 13:56:19 +01:00
VERBOSE=1 cmake --build build
}
package () {
DESTDIR="$pkgdir" cmake --install build
}