[arch-commits] Commit in sonic-visualiser/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Feb 24 22:04:13 UTC 2021


    Date: Wednesday, February 24, 2021 @ 22:04:12
  Author: dvzrv
Revision: 872019

upgpkg: sonic-visualiser 4.3-1: Upgrade to 4.3.

Switch to meson as build system.
Use the bintray source tarballs as sources.

Modified:
  sonic-visualiser/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++--------------------
 1 file changed, 17 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-24 21:58:06 UTC (rev 872018)
+++ PKGBUILD	2021-02-24 22:04:12 UTC (rev 872019)
@@ -4,8 +4,8 @@
 
 _download_id=2755
 pkgname=sonic-visualiser
-pkgver=4.2
-pkgrel=2
+pkgver=4.3
+pkgrel=1
 pkgdesc="A viewer and analyser of music audio files."
 arch=('x86_64')
 url="https://www.sonicvisualiser.org/"
@@ -12,23 +12,24 @@
 license=('GPL2')
 groups=('pro-audio')
 depends=('bzip2' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libglvnd'
-'libmad' 'libx11' 'opusfile>=0.12' 'qt5-base' 'qt5-svg' 'speex')
+'libmad' 'libx11' 'opusfile' 'qt5-base' 'qt5-svg' 'speex')
 makedepends=('alsa-lib' 'capnproto' 'fftw' 'libfishsound' 'libid3tag' 'liblo'
-'liblrdf' 'liboggz' 'libpulse' 'libsamplerate' 'libsndfile'
-'portaudio' 'rubberband' 'serd' 'sord')
-source=("https://code.soundsoftware.ac.uk/attachments/download/${_download_id}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('186d723c74d3b2865588370d9ff3afaf9f5356957e670483ea52303477c6acd17bb99b44c05db0fe4c0dc9757ba17c5e25b7b2fda5a15e85d9e193322ce8f2c3')
-b2sums=('8cc92b2cd932d3c9f014161635cd767aa6ffa671217fca7c63ec6b882ae46cc1ed790e108e9be59d536aab0cbead726057987c2920c501d451fd353b2bf83018')
+'liblrdf' 'liboggz' 'libpulse' 'libsamplerate' 'libsndfile' 'meson' 'portaudio'
+'rubberband' 'serd' 'sord')
+source=("${pkgname}-${pkgver}.tar.gz::https://bintray.com/${pkgname}/${pkgname}/download_file?file_path=${pkgname}-${pkgver}.tar.gz")
+sha512sums=('cbe0edee9f346545222e05156e4536710db932d6ec335687e91f2f4b24582e7f47703a3ecade87574ead8fa78dca821fd9ff2eb0d6e44c2b9c33c8d053fd738d')
+b2sums=('4c9bbfc751f94dfc0e8c93a8ba791b0a4bf949fe1f528a081da583ad720dcb25b3e6f84e31104f11ab5003b338b62a1ca1a9572bc9ec820d0a4269d25cbe0e04')
 
-prepare() {
-  cd "${pkgname}-${pkgver}"
-  autoreconf -vfi
-}
-
 build() {
   cd "${pkgname}-${pkgver}"
-  ./configure --prefix=/usr
-  make
+  meson --prefix='/usr' \
+        --buildtype plain \
+        --wrap-mode nodownload \
+        -D b_lto=true \
+        -D b_pie=true \
+        -Dintrospection=enabled \
+        build
+  ninja -C build
 }
 
 package() {
@@ -37,11 +38,7 @@
   'liboggz.so' 'libportaudio.so' 'libpulse.so' 'librubberband.so'
   'libsamplerate.so' 'libserd-0.so' 'libsndfile.so' 'libsord-0.so')
   cd "${pkgname}-${pkgver}"
-  # INSTALL_ROOT used in favor of DESTDIR
-  # https://sourceforge.net/p/sv1/bugs/254
-  make INSTALL_ROOT="${pkgdir}/" install
-  # xdg desktop file
-  install -vDm 644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
+  DESTDIR="${pkgdir}" meson install -C build
   # samples
   install -vDm 644 samples/* -t "${pkgdir}/usr/share/${pkgname}/samples"
   # templates


More information about the arch-commits mailing list