author | David Runge
<dvzrv@archlinux.org> 2018-04-19 22:33:22 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2018-04-19 22:33:22 UTC |
parent | f08ef745c000c4a2c022dca7a58946ead2ab632b |
PKGBUILD | +17 | -16 |
diff --git a/PKGBUILD b/PKGBUILD index a4ce09a..22ff666 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,11 +1,12 @@ # Maintainer: David Runge <dave@sleepmap.de> -# Maintainer: Ray Rashif <schiv@archlinux.org> +# Contributor: Ray Rashif <schiv@archlinux.org> # Contributor: Tobias Kieslich tobias [funnychar] archlinux org pkgbase=aubio pkgname=('aubio' 'python-aubio' 'python2-aubio') pkgver=0.4.6 -pkgrel=3 +pkgrel=4 +pkgdesc="A tool for extracting annotations from audio signals" arch=('x86_64') url="https://aubio.org/" license=('GPL3') @@ -52,40 +53,40 @@ check() { package_aubio() { pkgdesc="A tool for extracting annotations from audio signals" - depends=('ffmpeg' 'fftw' 'jack' 'libsamplerate' 'libsndfile') + depends=('ffmpeg' 'fftw' 'jack' 'libsamplerate') optdepends=('python2-numpy: Python 2.x interface' 'python-numpy: Python 3.x interface') - cd "${pkgname[0]}-${pkgver}" + cd "${pkgname}-${pkgver}" python2 waf --destdir="${pkgdir}" install # move doc, as waf configure doesn't honor the htmldir and docdir settings - mv -v "${pkgdir}/usr/share/doc/lib${pkgname[0]}-doc" \ - "${pkgdir}/usr/share/doc/${pkgname[0]}" - install -t "${pkgdir}/usr/share/doc/${pkgname[0]}/" \ - -vDm644 {AUTHORS,ChangeLog,README.md} + mv -v "${pkgdir}/usr/share/doc/lib${pkgname}-doc" \ + "${pkgdir}/usr/share/doc/${pkgname}" + install -t "${pkgdir}/usr/share/doc/${pkgname}/" \ + -vDm 644 {AUTHORS,ChangeLog,README.md} } package_python-aubio() { pkgdesc="Python 3.x bindings for aubio." - depends=('aubio' 'python-numpy') - cd "${pkgname[1]}-${pkgver}" + depends=('aubio' 'python-numpy' 'python-setuptools') + cd "${pkgname}-${pkgver}" python setup.py install --skip-build \ --optimize=1 \ --prefix=/usr \ --root="${pkgdir}" - install -t "${pkgdir}/usr/share/doc/${pkgname[1]}/" \ - -vDm644 {AUTHORS,ChangeLog,README.md} + install -t "${pkgdir}/usr/share/doc/${pkgname}/" \ + -vDm 644 {AUTHORS,ChangeLog,README.md} } package_python2-aubio() { pkgdesc="Python 2.x bindings for aubio." - depends=('aubio' 'python2-numpy') - cd "${pkgname[2]}-${pkgver}" + depends=('aubio' 'python2-numpy' 'python2-setuptools') + cd "${pkgname}-${pkgver}" python2 setup.py install --skip-build \ --optimize=1 \ --prefix=/usr \ --root="${pkgdir}" - install -t "${pkgdir}/usr/share/doc/${pkgname[1]}/" \ - -vDm644 {AUTHORS,ChangeLog,README.md} + install -t "${pkgdir}/usr/share/doc/${pkgname}/" \ + -vDm 644 {AUTHORS,ChangeLog,README.md} # move duplicates mv -v ${pkgdir}/usr/bin/aubio ${pkgdir}/usr/bin/aubio2 mv -v ${pkgdir}/usr/bin/aubiocut ${pkgdir}/usr/bin/aubiocut2