Date: Saturday, December 31, 2022 @ 16:55:19
  Author: dvzrv
Revision: 1372696

upgpkg: lib32-fluidsynth 2.3.1-1: Upgrade to 2.3.1.

Add lib32-pipewire to depends.
Use cmake calls to build and install to align with cmake package guidelines.

Modified:
  lib32-fluidsynth/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++++++++++++++++++-----------------
 1 file changed, 30 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-31 16:25:51 UTC (rev 1372695)
+++ PKGBUILD    2022-12-31 16:55:19 UTC (rev 1372696)
@@ -7,8 +7,8 @@
 
 pkgname=lib32-fluidsynth
 _name=fluidsynth
-pkgver=2.3.0
-pkgrel=2
+pkgver=2.3.1
+pkgrel=1
 pkgdesc='A real-time software synthesizer based on the SoundFont 2 
specifications'
 arch=(x86_64)
 url="https://www.fluidsynth.org/";
@@ -29,27 +29,33 @@
   lib32-ladspa
   lib32-libinstpatch
   lib32-libsndfile
+  lib32-pipewire
   lib32-portaudio
 )
 options=(debug)
 
source=($pkgname-$pkgver.tar.gz::https://github.com/$_name/$_name/archive/v$pkgver.tar.gz)
-sha512sums=('621a54f7d9845a9350381e9aa99f342b28050e1dd80983e69828acc685ace39ee5376f8e40d7a93ddb247718e4bcfb3f196cbd4027343251f8c0fbe3c0d219ed')
-b2sums=('845f4b1d00b743edf7ef8a5660c239c2924ca51306fbd8f45c0c965198ed2d5267bacf8333a44720beb3f283e9a75bbb8b497dcb0b004153d5f8a9d9ed4f5224')
+sha512sums=('1633294bf6c714361c381151b62d9dd2c8f388490153e7964bfa14fd647a681db9ebfe1de0a06279972d6c5b30377f67361feb4db186b1faa235600f0ae02b22')
+b2sums=('a1501303e02b3ea64d87be5cff08d5f2f2be170b38faedc8e6bc4fd18c0dafe268fa6110708664ef0659df9f0e9680551ac483d30364977e768af60dfdff7e83')
 
 build() {
+  local cmake_options=(
+    -DCMAKE_INSTALL_PREFIX=/usr
+    -DCMAKE_INSTALL_LIBDIR=lib32
+    -DCMAKE_BUILD_TYPE=None
+    -DFLUID_DAEMON_ENV_FILE=/etc/conf.d/fluidsynth
+    -Denable-ladspa=ON
+    -Denable-portaudio=ON
+    -Wno-dev
+    -B build
+    -S $_name-$pkgver
+  )
+
   export CC='gcc -m32'
   export CXX='g++ -m32'
   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
-  cmake -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_INSTALL_LIBDIR=lib32 \
-        -DCMAKE_BUILD_TYPE=None \
-        -DFLUID_DAEMON_ENV_FILE=/etc/conf.d/fluidsynth \
-        -Denable-ladspa=ON \
-        -Denable-portaudio=ON \
-        -Wno-dev \
-        -B build \
-        -S $_name-$pkgver
-  make -C build VERBOSE=1
+
+  cmake "${cmake_options[@]}"
+  cmake --build build
 }
 
 check() {
@@ -57,10 +63,17 @@
 }
 
 package() {
-  depends+=(libasound.so libglib-2.0.so libgmodule-2.0.so libgobject-2.0.so
-  libinstpatch-1.0.so libjack.so libportaudio.so libsndfile.so)
+  depends+=(
+    lib32-alsa-lib libasound.so
+    lib32-glib2 libglib-2.0.so libgmodule-2.0.so libgobject-2.0.so
+    lib32-jack libjack.so
+    lib32-libinstpatch libinstpatch-1.0.so
+    lib32-libsndfile libsndfile.so
+    lib32-pipewire libpipewire-0.3.so
+    lib32-portaudio libportaudio.so
+  )
 
-  make -C build DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
   rm -rf "$pkgdir"/usr/{include,share,bin}
 }
 # vim: ts=2 sw=2 et:

Reply via email to