Date: Saturday, March 25, 2023 @ 18:21:24
  Author: dvzrv
Revision: 1427951

upgpkg: qsynth 0.9.10-1: Upgrade to 0.9.10.

Move cmake options to local bash array.
Consolidate cmake calls to adhere to packaging guidelines.

Modified:
  qsynth/trunk/PKGBUILD

----------+
 PKGBUILD |   48 +++++++++++++++++++++++++++++++++---------------
 1 file changed, 33 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-25 18:16:44 UTC (rev 1427950)
+++ PKGBUILD    2023-03-25 18:21:24 UTC (rev 1427951)
@@ -3,7 +3,7 @@
 # Contributor: damir <[email protected]>
 
 pkgname=qsynth
-pkgver=0.9.9
+pkgver=0.9.10
 pkgrel=1
 pkgdesc="Qt GUI for FluidSynth"
 arch=(x86_64)
@@ -10,26 +10,44 @@
 url="https://qsynth.sourceforge.io/";
 license=(GPL)
 groups=(pro-audio)
-depends=(gcc-libs glibc hicolor-icon-theme qt6-base qt6-svg)
-makedepends=(cmake fluidsynth qt6-tools)
-optdepends=('qt6-wayland: for native wayland support')
+depends=(
+  gcc-libs
+  glibc
+  hicolor-icon-theme
+  qt6-base
+  qt6-svg
+)
+makedepends=(
+  cmake
+  fluidsynth
+  qt6-tools
+)
+optdepends=(
+  'qt6-wayland: for native wayland support'
+)
 source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
-sha512sums=('79a3085a884b3bd3251ad059b8ab67eb3329f2e6b25df5dfa6d210d7d313000b52ccdfd8b9f18aa49bdc9db2a5cd1738f05c529cb4673bd579b4ba987b1edff6')
-b2sums=('efc22bc509445e1948d7dd28de8e6c6281967964dcf54e688a8830280945b37c51c70e0a64596bff2a7a12ccfcbaa3fd65d9465b11dc7abe2cca060cce6e3997')
+sha512sums=('82e04ccfe3193d570e28c4e5da3e9ea8afbc2b1f2e43f54459449b31ee5448a6232a5fe13631eed80a5cf75f4176e5a419ec6467bf3d7d5e30d34083d4d8f7aa')
+b2sums=('87ca02e1f15a7b28f5af462d1ef52e9609fc0abc3d15d545493f448da61d85d8d264f5ab908816607de3291424b979348f330205fc6e727edb7287fd28e9067d')
 
 build() {
-  cmake -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_BUILD_TYPE=None \
-        -DCONFIG_QT6=ON \
-        -Wno-dev \
-        -B build \
-        -S $pkgname-$pkgver
-  make VERBOSE=1 -C build
+  local cmake_options=(
+    -B build
+    -D CMAKE_BUILD_TYPE=None
+    -D CMAKE_INSTALL_PREFIX=/usr
+    -D CONFIG_QT6=ON
+    -S $pkgname-$pkgver
+    -W no-dev
+  )
+
+  cmake "${cmake_options[@]}"
+  cmake --build build --verbose
 }
 
 package() {
-  depends+=(libfluidsynth.so)
+  depends+=(
+    fluidsynth libfluidsynth.so
+  )
 
-  make VERBOSE=1 DESTDIR="$pkgdir" install -C build
+  DESTDIR="$pkgdir" cmake --install build
   install -vDm 644 $pkgname-$pkgver/{ChangeLog,README,TRANSLATORS} -t 
"$pkgdir/usr/share/doc/$pkgname"
 }

Reply via email to