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

David Runge dvzrv at archlinux.org
Thu Apr 18 14:55:53 UTC 2019


    Date: Thursday, April 18, 2019 @ 14:55:53
  Author: dvzrv
Revision: 451990

upgpkg: rtaudio 5.1.0-1

Upgrading to 5.1.0. Removing unrequired patch. Fixing locations of installed files/LICENSE and opening a few bug reports about the build system upstream.

Modified:
  rtaudio/trunk/PKGBUILD
Deleted:
  rtaudio/trunk/0001-fix-jack-requirement.diff

--------------------------------+
 0001-fix-jack-requirement.diff |   14 -----------
 PKGBUILD                       |   47 ++++++++++++++++++++-------------------
 2 files changed, 25 insertions(+), 36 deletions(-)

Deleted: 0001-fix-jack-requirement.diff
===================================================================
--- 0001-fix-jack-requirement.diff	2019-04-18 14:08:30 UTC (rev 451989)
+++ 0001-fix-jack-requirement.diff	2019-04-18 14:55:53 UTC (rev 451990)
@@ -1,14 +0,0 @@
-diff -ruN rtaudio-5.0.0-a/configure.ac rtaudio-5.0.0-b/configure.ac
---- rtaudio-5.0.0-a/configure.ac	2017-08-30 23:30:36.000000000 +0200
-+++ rtaudio-5.0.0-b/configure.ac	2018-01-31 22:04:03.896801359 +0100
-@@ -127,7 +127,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
-   *-*-netbsd*)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-18 14:08:30 UTC (rev 451989)
+++ PKGBUILD	2019-04-18 14:55:53 UTC (rev 451990)
@@ -5,52 +5,55 @@
 # Contributor: SpepS <dreamspepser at yahoo dot it>
 
 pkgname=rtaudio
-pkgver=5.0.0
-pkgrel=6
+pkgver=5.1.0
+pkgrel=1
 pkgdesc="A set of C++ classes that provide a common API for realtime audio input/output."
 arch=('x86_64')
 url="https://www.music.mcgill.ca/~gary/rtaudio/"
 license=('custom:MIT')
 depends=('jack' 'libpulse' 'python2')
-makedepends=('doxygen')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thestk/${pkgname}/archive/v${pkgver}.tar.gz"
-        '0001-fix-jack-requirement.diff')
-sha512sums=('0bc60c189795626ff65ffaf7c7ae3dd72b4d249fdfe8dc9c3cc4cda8871b8f6ba151c60cd10b81286c3800f326a16028745cf8c67b8eafde0d8a68145ecb2258'
-            '3cb2c19cdf2d25d1bb62f6f37d30f8677405e325966e9cbfbf39e57088637e5ab1eb70af224335569ba39931e75f57592223b33f65f8d3fc7be6bd230d67f901')
+makedepends=('cmake' 'doxygen' 'python2-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thestk/${pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('338a3a14cd4ea665ac7e94a275cb017bffd87cb10eb8ab6784fad320345ee828b8874439edd08c39efa48736edf9aa0622620784adc320473b03a8f81e17fff6')
 
 prepare() {
   cd "${pkgname}-${pkgver}"
-  # https://github.com/thestk/rtaudio/issues/115
-  patch -Np1 -i "${srcdir}/0001-fix-jack-requirement.diff"
   autoreconf -fi
 }
 
 build() {
   cd "${pkgname}-${pkgver}"
-  ./configure --prefix=/usr --with-alsa --with-jack --with-pulse
+  ./configure --prefix=/usr \
+              --with-alsa \
+              --with-jack \
+              --with-pulse
   make
+  # python bindings not compatible with python3:
+  # https://github.com/thestk/rtaudio/issues/199
   cd contrib/python/pyrtaudio
   python2 setup.py build
 }
 
+check() {
+  cd "${pkgname}-${pkgver}"
+  make -C tests -k
+}
+
 package() {
   cd "${pkgname}-${pkgver}"
   make DESTDIR="${pkgdir}" install
-
   # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    -vDm644 {readme,doc/release.txt}
-
+  install -vDm 644 {README.md,ChangeLog,doc/release.txt} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
   # html
-  install -t "${pkgdir}/usr/share/doc/${pkgname}/html" \
-    -vDm644 doc/html/*
-  install -t "${pkgdir}/usr/share/doc/${pkgname}/images" \
-    -vDm644 doc/images/*
+  install -vDm 644 doc/html/* -t "${pkgdir}/usr/share/doc/${pkgname}/html"
+  install -vDm 644 doc/images/* \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/images"
+  # license is in README.md
+  # https://github.com/thestk/rtaudio/issues/197
+  csplit -s README.md "%Legal and%"
+  install -vDm 644 xx00 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 
-  # license
-  csplit -s readme "%LEGAL AND%"
-  install -vDm644 xx00 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
   # python2 bindings
   cd contrib/python/pyrtaudio
   python2 setup.py install --skip-build \


More information about the arch-commits mailing list