Date: Friday, November 22, 2019 @ 10:21:43
  Author: dvzrv
Revision: 531835

upgpkg: rtaudio 5.1.0-2

Updating maintainer info. Adding all direct library dependencies. Adding 
librtaudio.so to provides. Moving python2 to optdepends (soon to be 
deprecated). Changing license name (allegedly it's called RtAudio license) and 
exctracting it in a more sane way from README.md. Minor cleanups.

Modified:
  rtaudio/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2019-11-22 08:45:28 UTC (rev 531834)
+++ PKGBUILD    2019-11-22 10:21:43 UTC (rev 531835)
@@ -1,4 +1,4 @@
-# Maintainer: David Runge <[email protected]>
+# Maintainer: David Runge <[email protected]>
 # Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
 # Contributor: rtfreedman  <rob dot til dot freedman at gmail dot com>
 # Contributor: Limao Luo <luolimao+AUR at gmail dot com>
@@ -6,18 +6,23 @@
 
 pkgname=rtaudio
 pkgver=5.1.0
-pkgrel=1
+pkgrel=2
 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')
+license=('custom:RtAudio')
+depends=('alsa-lib' 'gcc-libs' 'glibc' 'libjack.so' 'libpulse')
 makedepends=('cmake' 'doxygen' 'python2-setuptools')
+optdepends=('python2: for python2 bindings')
+provides=('librtaudio.so')
 
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/thestk/${pkgname}/archive/${pkgver}.tar.gz";)
 
sha512sums=('338a3a14cd4ea665ac7e94a275cb017bffd87cb10eb8ab6784fad320345ee828b8874439edd08c39efa48736edf9aa0622620784adc320473b03a8f81e17fff6')
 
 prepare() {
   cd "${pkgname}-${pkgver}"
+  # license is in README.md
+  # https://github.com/thestk/rtaudio/issues/197
+  tail -n 25 README.md | sed 's/^\ \ \ \ //g' > LICENSE
   autoreconf -fi
 }
 
@@ -49,11 +54,8 @@
   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
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
   # python2 bindings
   cd contrib/python/pyrtaudio
   python2 setup.py install --skip-build \
@@ -61,4 +63,3 @@
     --prefix=/usr \
     --root="${pkgdir}/"
 }
-

Reply via email to