archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / qsynth / trunk / PKGBUILD
blob3bfabe1053b190c88d813118007e789f9d94cd85
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: damir <damir@archlinux.org>
5 pkgname=qsynth
6 pkgver=0.9.10
7 pkgrel=1
8 pkgdesc="Qt GUI for FluidSynth"
9 arch=(x86_64)
10 url="https://qsynth.sourceforge.io/"
11 license=(GPL)
12 groups=(pro-audio)
13 depends=(
14   gcc-libs
15   glibc
16   hicolor-icon-theme
17   qt6-base
18   qt6-svg
20 makedepends=(
21   cmake
22   fluidsynth
23   qt6-tools
25 optdepends=(
26   'qt6-wayland: for native wayland support'
28 source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
29 sha512sums=('82e04ccfe3193d570e28c4e5da3e9ea8afbc2b1f2e43f54459449b31ee5448a6232a5fe13631eed80a5cf75f4176e5a419ec6467bf3d7d5e30d34083d4d8f7aa')
30 b2sums=('87ca02e1f15a7b28f5af462d1ef52e9609fc0abc3d15d545493f448da61d85d8d264f5ab908816607de3291424b979348f330205fc6e727edb7287fd28e9067d')
32 build() {
33   local cmake_options=(
34     -B build
35     -D CMAKE_BUILD_TYPE=None
36     -D CMAKE_INSTALL_PREFIX=/usr
37     -D CONFIG_QT6=ON
38     -S $pkgname-$pkgver
39     -W no-dev
40   )
42   cmake "${cmake_options[@]}"
43   cmake --build build --verbose
46 package() {
47   depends+=(
48     fluidsynth libfluidsynth.so
49   )
51   DESTDIR="$pkgdir" cmake --install build
52   install -vDm 644 $pkgname-$pkgver/{ChangeLog,README,TRANSLATORS} -t "$pkgdir/usr/share/doc/$pkgname"