[arch-commits] Commit in rev-plugins/trunk (PKGBUILD rev-plugins-0.8.1-makefile.patch)

David Runge dvzrv at gemini.archlinux.org
Wed Jun 29 11:10:45 UTC 2022


    Date: Wednesday, June 29, 2022 @ 11:10:44
  Author: dvzrv
Revision: 1240319

upgpkg: rev-plugins 0.8.1-1: Upgrade to 0.8.1.

Remove unnecessary quotes and curly braces.
Add (upstreamed) patch honoring LDFLAGS and DESTDIR in the Makefile.

Added:
  rev-plugins/trunk/rev-plugins-0.8.1-makefile.patch
Modified:
  rev-plugins/trunk/PKGBUILD

----------------------------------+
 PKGBUILD                         |   41 +++++++++++++++++++++----------------
 rev-plugins-0.8.1-makefile.patch |   26 +++++++++++++++++++++++
 2 files changed, 50 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-29 11:01:53 UTC (rev 1240318)
+++ PKGBUILD	2022-06-29 11:10:44 UTC (rev 1240319)
@@ -1,29 +1,36 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
 # Contributor: speps <speps at aur dot archlinux dot org>
 
 pkgname=rev-plugins
 _name=REV-plugins
-pkgver=0.7.1
-pkgrel=6
+pkgver=0.8.1
+pkgrel=1
 pkgdesc="LADSPA stereo and ambisonic reverb plugin based on zita-rev1"
-arch=('x86_64')
+arch=(x86_64)
 url="https://kokkinizita.linuxaudio.org/linuxaudio/ladspa/"
-license=('GPL2')
-groups=('ladspa-plugins' 'pro-audio')
-depends=('gcc-libs')
-makedepends=('ladspa')
-source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${_name}-${pkgver}.tar.bz2")
-sha512sums=('00f984b47347a4f75d809587c654e3e078cb37a6c324bcec09382d1181bd8665a58044505054de75c9ba58972af7e1d3f964c3a5bd925fed4af5cccd1233bd19')
+license=(GPL3)
+groups=(ladspa-plugins pro-audio)
+depends=(gcc-libs ladspa-host)
+makedepends=(ladspa)
+source=(
+  https://kokkinizita.linuxaudio.org/linuxaudio/downloads/$_name-$pkgver.tar.bz2
+  $pkgname-0.8.1-makefile.patch
+)
+sha512sums=('1c5732099f1f7b345f0ba509aebc4820bdd93e7a5a8bf54c010da34b89f95a1a5d1aff1447020c0f52c5de05f11b1c8381adcf034d68a17b90235229ad6bcad6'
+            'd3184a8d195cb1883827d36a757e81ff31fc5afacc8267ccc2dca35050321995564bb2ea8bce301d8aa4694d74c8501757851baaafd0ead1870dfe853a6b52b0')
+b2sums=('01bad9b663fa3b4f49209a174486758c03945b8e97e455e01269213be885167fbec33e6ada251c6c18e03d78573494bd67ec3ad6d2860f7f159e73bb72bc4635'
+        '51219951ad0a452a6ab6dfb5c37f4615d7ff3f28c82d704359d5bc4b895426c454bcd9ec85df7c7c08f2de3f83cb294573aa130639ae915da58665e8af7cfe83')
 
+prepare() {
+  # fix Makefile to honor LDFLAGS and DESTDIR
+  patch -Np1 -d $_name-$pkgver -i ../$pkgname-0.8.1-makefile.patch
+}
+
 build() {
-  cd "${_name}-${pkgver}"
-  make
+  make -C $_name-$pkgver/source
 }
 
 package() {
-  cd "${_name}-${pkgver}"
-  # plugin
-  install -vDm 755 zita-reverbs.so "${pkgdir}/usr/lib/ladspa/zita-reverbs.so"
-  # docs
-  install -vDm 644 {AUTHORS,README} -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  make install DESTDIR="$pkgdir" -C $_name-$pkgver/source
+  install -vDm 644 $_name-$pkgver/{AUTHORS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
 }

Added: rev-plugins-0.8.1-makefile.patch
===================================================================
--- rev-plugins-0.8.1-makefile.patch	                        (rev 0)
+++ rev-plugins-0.8.1-makefile.patch	2022-06-29 11:10:44 UTC (rev 1240319)
@@ -0,0 +1,26 @@
+diff -ruN a/source/Makefile b/source/Makefile
+--- a/source/Makefile	2022-06-28 12:39:06.000000000 +0200
++++ b/source/Makefile	2022-06-29 13:03:28.693568568 +0200
+@@ -21,19 +21,20 @@
+ 
+ CPPFLAGS += -I. -fPIC -D_REENTRANT
+ CXXFLAGS += -Wall -O2
++LDFLAGS += -shared
+ 
+ all:	zita-reverbs.so
+ 
+ REVERBS_O = revplugins.o reverbs.o zreverb.o pareq.o
+ zita-reverbs.so:	$(REVERBS_O)	
+-	$(CXX) -shared  -o $@  $(REVERBS_O)
++	$(CXX) $(LDFLAGS) -o $@  $(REVERBS_O)
+ 
+ reverbs.o:	ladspaplugin.h reverbs.h zreverb.h pareq.h
+ revplugins.o:	ladspaplugin.h reverbs.h zreverb.h pareq.h
+ 
+ 
+ install:	zita-reverbs.so
+-	cp  *.so /usr/lib/ladspa
++	install -vDm 755 *.so -t $(DESTDIR)/usr/lib/ladspa
+ 
+ clean:
+ 	rm -rf *~ *.o *.so



More information about the arch-commits mailing list