[arch-commits] Commit in rtmidi/trunk (0002-fix-jack-requirement.diff PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Jan 31 21:03:30 UTC 2018


    Date: Wednesday, January 31, 2018 @ 21:03:30
  Author: dvzrv
Revision: 288448

upgpkg: rtmidi 3.0.0-5

Adding patch for https://github.com/thestk/rtmidi/issues/154.

Added:
  rtmidi/trunk/0002-fix-jack-requirement.diff
Modified:
  rtmidi/trunk/PKGBUILD

--------------------------------+
 0002-fix-jack-requirement.diff |   14 ++++++++++++++
 PKGBUILD                       |   14 ++++++++------
 2 files changed, 22 insertions(+), 6 deletions(-)

Added: 0002-fix-jack-requirement.diff
===================================================================
--- 0002-fix-jack-requirement.diff	                        (rev 0)
+++ 0002-fix-jack-requirement.diff	2018-01-31 21:03:30 UTC (rev 288448)
@@ -0,0 +1,14 @@
+diff -ruN rtmidi-3.0.0-a/configure.ac rtmidi-3.0.0-b/configure.ac
+--- rtmidi-3.0.0-a/configure.ac	2017-09-01 02:10:07.000000000 +0200
++++ rtmidi-3.0.0-b/configure.ac	2018-01-31 21:51:28.870760324 +0100
+@@ -116,7 +116,9 @@
+ AS_IF([test "x$with_jack" == "xyes"], [
+ api="$api -D__UNIX_JACK__"
+ AC_MSG_RESULT(using JACK)
+-AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))])
++AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))
++req="$req jack"
++])
+ 
+ case $host in
+   *-*-linux*)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-31 20:59:54 UTC (rev 288447)
+++ PKGBUILD	2018-01-31 21:03:30 UTC (rev 288448)
@@ -5,7 +5,7 @@
 
 pkgname=rtmidi
 pkgver=3.0.0
-pkgrel=4
+pkgrel=5
 pkgdesc="A set of C++ classes that provides a common API for realtime MIDI input/output."
 arch=('x86_64')
 url="https://www.music.mcgill.ca/~gary/rtmidi/"
@@ -13,15 +13,18 @@
 depends=('jack')
 makedepends=('doxygen')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thestk/${pkgname}/archive/v${pkgver}.tar.gz"
-        '0001-fix-tests-with-prefix.diff')
+        '0001-fix-tests-with-prefix.diff'
+        '0002-fix-jack-requirement.diff')
 sha512sums=('8975a63e7be9102af70401cef48c702597b87efe2d8fa30a978fe280e26da1dfa90d6f30cfbd3df587462f0dd085d0f29e1c014e67d7fcd3a36960b6bcfb3e55'
-            'cab71dd641eaa3c7fa3c83b81fb4517bcf455a6037e103c29edbc2d540feed1b4fc0e5e3f9ea5f03845c98c8246cbb9bd12d1cf1f16c4bcbb2c0e874bd66674a')
+            'cab71dd641eaa3c7fa3c83b81fb4517bcf455a6037e103c29edbc2d540feed1b4fc0e5e3f9ea5f03845c98c8246cbb9bd12d1cf1f16c4bcbb2c0e874bd66674a'
+            '4cd4f49a639688736fef3ebea84f5ca05aef54c85b83713e9aa9ae5467c871e7edda7272279e8f2e131e3e70cc9aa394bab4e157be9521f41d1811c90a66b357')
 
 prepare() {
   cd "${pkgname}-${pkgver}"
-  # Link the tests against build output and not the system library when using --prefix.
-  # [https://github.com/thestk/rtmidi/pull/127]
+  # https://github.com/thestk/rtmidi/pull/127
   patch -Np2 -i "${srcdir}/0001-fix-tests-with-prefix.diff"
+  # https://github.com/thestk/rtmidi/issues/154
+  patch -Np1 -i "${srcdir}/0002-fix-jack-requirement.diff"
   autoreconf -fi
 }
 
@@ -28,7 +31,6 @@
 build() {
   cd "${pkgname}-${pkgver}"
   ./configure --prefix=/usr --with-alsa --with-jack
-  sed -i 's/Requires: /Requires: jack/' "${pkgname}.pc"
   make
 }
 



More information about the arch-commits mailing list