Date: Saturday, March 18, 2023 @ 18:23:58
  Author: dvzrv
Revision: 471521

upgpkg: ladspa 1.17-2: Rebuild to re-sign package.

Remove unnecessary quotes and curly braces.
Move make options to local bash array for better handling.

Modified:
  ladspa/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-18 18:17:12 UTC (rev 471520)
+++ PKGBUILD    2023-03-18 18:23:58 UTC (rev 471521)
@@ -3,16 +3,18 @@
 
 pkgname=ladspa
 pkgver=1.17
-pkgrel=1
+pkgrel=2
 pkgdesc="Linux Audio Developer's Simple Plugin API (LADSPA)"
-arch=('x86_64')
-license=('LGPL2.1')
+arch=(x86_64)
+license=(LGPL2.1)
 url="https://www.ladspa.org/";
-depends=('gcc-libs' 'glibc')
-makedepends=('libsndfile')
+depends=(gcc-libs glibc)
+makedepends=(libsndfile)
 optdepends=('libsndfile: for applyplugin')
-source=("https://ladspa.org/download/ladspa_sdk_${pkgver}.tgz";
-        'fix-memleak-in-plugin-scanning.patch')
+source=(
+  https://ladspa.org/download/ladspa_sdk_$pkgver.tgz
+  fix-memleak-in-plugin-scanning.patch
+)
 
sha512sums=('37f94aa52b5a2f8709528989dea289eb01342f3bcb9e85d0f4829ddd9d90b2934a113db11100f09375a50f6612122b78156fec916f2c78a22406253d5cb394c7'
             
'e80a575e6afe42f9d0ac1234a7832a29fb9362c7ab7b2d6b14cc3e6da6a9ba67af886cf09f1c0b78c161205084f705049fb4dc22fe2795efaeb7d94da90dc93e')
 
b2sums=('cfb80e8ced314d5cc62fcb7f0b82e58f572503f2a732b2bb8a58343e8f69e417c0b0a2919bbb40629567fb331bf60a7f0c6f186db47e5b2651725b039526cdbb'
@@ -19,8 +21,7 @@
         
'b2235b41d9638cceb93a41452f1f0b710bc3f9264fe735972099244dfc8d98d354c7d15084d79b0bdfc4fa3f437f9368f81aa0ebdb7e39df5900fbbf172927c2')
 
 prepare() {
-  mv -v ${pkgname}_sdk_${pkgver} ${pkgname}-${pkgver}
-  cd "${pkgname}-${pkgver}"
+  cd ${pkgname}_sdk_$pkgver
   patch -Np0 -i "../fix-memleak-in-plugin-scanning.patch"
   # add LDFLAGS for full RELRO
   sed -e "s#-O2#${CFLAGS} ${LDFLAGS}#" -i src/Makefile
@@ -27,15 +28,18 @@
 }
 
 build() {
-  cd "${pkgname}-${pkgver}/src"
-  make targets
+  make -C ${pkgname}_sdk_$pkgver/src
 }
 
 package() {
-  cd "${pkgname}-${pkgver}/src"
-  make INSTALL_PLUGINS_DIR="${pkgdir}/usr/lib/ladspa/" \
-       INSTALL_INCLUDE_DIR="${pkgdir}/usr/include/" \
-       INSTALL_BINARY_DIR="${pkgdir}/usr/bin/" install
-  install -vDm 644 ../doc/*.{html,txt} -t "${pkgdir}/usr/share/doc/${pkgname}"
+  local make_options=(
+    INSTALL_PLUGINS_DIR="$pkgdir/usr/lib/ladspa/"
+    INSTALL_INCLUDE_DIR="$pkgdir/usr/include/"
+    INSTALL_BINARY_DIR="$pkgdir/usr/bin/"
+    install
+    -C ${pkgname}_sdk_$pkgver/src
+  )
+  make "${make_options[@]}"
+  install -vDm 644 ${pkgname}_sdk_$pkgver/doc/*.{html,txt} -t 
"$pkgdir/usr/share/doc/$pkgname"
 }
 

Reply via email to