Advertisement
Guest User

PKGBUILD arch rtaudio 4.1.1-7

a guest
Apr 10th, 2016
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.44 KB | None | 0 0
  1. # Maintainer: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
  2. # Contributor: rtfreedman  <rob dot til dot freedman at gmail dot com>
  3. # Contributor: Limao Luo <luolimao+AUR at gmail dot com>
  4. # Contributor: SpepS <dreamspepser at yahoo dot it>
  5.  
  6. pkgname=rtaudio
  7. pkgver=4.1.1
  8. pkgrel=7
  9. pkgdesc="A set of C++ classes that provide a common API for realtime audio input/output."
  10. arch=('i686' 'x86_64')
  11. url="http://www.music.mcgill.ca/~gary/rtaudio/"
  12. license=('MIT')
  13. depends=('jack' 'rtmidi')
  14. source=("${url}release/${pkgname}-${pkgver}.tar.gz")
  15. sha512sums=('b47f909d7b5485fa670005642ff2846122b15229f72e600318eca187c93d18b34ba38f5f8ba367799e3d47f3b0c9cb84f28d1315e6607ab779b0799e364b454b')
  16.  
  17. prepare() {
  18.   cd "${pkgname}-${pkgver}"
  19. #  aclocal
  20. #  autoconf
  21. }
  22.  
  23. build() {
  24.   cd "${pkgname}-${pkgver}"
  25.   ./configure --prefix=/usr --with-alsa --with-jack
  26.   # Add jack or comment line without jack
  27.   sed -i 's/Requires: /Requires: jack /' librtaudio.pc
  28.   make
  29.   make -C tests
  30. }
  31.  
  32. package() {
  33.   cd "${pkgname}-${pkgver}"
  34.  
  35.   # Install library files.
  36.   install -Dm755 librtaudio.so.${pkgver} "${pkgdir}/usr/lib/librtaudio.so.${pkgver}"
  37.   ln -sf librtaudio.so.${pkgver} "${pkgdir}/usr/lib/librtaudio.so.4"
  38.   ln -sf librtaudio.so.${pkgver} "${pkgdir}/usr/lib/librtaudio.so"
  39.  
  40.   # Install header file.
  41.   install -Dm644 RtAudio.h "${pkgdir}/usr/include/RtAudio.h"
  42.  
  43.   # Install RtAudio configuration tool.
  44.   install -Dm644 librtaudio.pc "${pkgdir}/usr/lib/pkgconfig/librtaudio.pc"
  45.   install -Dm755 rtaudio-config "${pkgdir}/usr/bin/rtaudio-config"
  46.  
  47.   # Install test utilities with prefix 'rtaudio-'
  48.   for i in $(find tests -maxdepth 1 -perm 755 -type f); do
  49.       install -Dm755 $i "${pkgdir}/usr/bin/${pkgname}-"${i/*\//}
  50.   done
  51.  
  52.   # Text documentation.
  53.   install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
  54.   install -m644 readme doc/release.txt "${pkgdir}/usr/share/doc/${pkgname}"
  55.  
  56.   # HTML documentation.
  57.   install -d "${pkgdir}/usr/share/doc/${pkgname}/"{html,images}
  58.   install -Dm644 doc/html/*  "${pkgdir}/usr/share/doc/${pkgname}/html"
  59.   install -Dm644 doc/images/*  "${pkgdir}/usr/share/doc/${pkgname}/images"
  60.  
  61.   # License.
  62.   csplit -s readme "%LEGAL AND%"
  63.   install -Dm644 xx00 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  64.  
  65.   # Install python2 bindings - Currently fails to build.
  66.   #cd contrib/python/pyrtaudio
  67.   #python2 setup.py install --root="${pkgdir}/"
  68.   #install -Dm644 PyRtAudioTest.py "${pkgdir}/usr/share/doc/${pkgname}/"
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement