[arch-commits] Commit in aubio/repos/community-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Sat Nov 23 22:05:07 UTC 2019
Date: Saturday, November 23, 2019 @ 22:05:06
Author: dvzrv
Revision: 532394
archrelease: copy trunk to community-x86_64
Added:
aubio/repos/community-x86_64/PKGBUILD
(from rev 532393, aubio/trunk/PKGBUILD)
Deleted:
aubio/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 174 ++++++++++++++++++++++++-------------------------------------
1 file changed, 70 insertions(+), 104 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-23 22:04:46 UTC (rev 532393)
+++ PKGBUILD 2019-11-23 22:05:06 UTC (rev 532394)
@@ -1,104 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: Ray Rashif <schiv at archlinux.org>
-# Contributor: Tobias Kieslich tobias [funnychar] archlinux org
-
-pkgbase=aubio
-pkgname=('aubio' 'python-aubio' 'python2-aubio')
-pkgver=0.4.9
-pkgrel=5
-pkgdesc="A tool for extracting annotations from audio signals"
-arch=('x86_64')
-url="https://aubio.org/"
-license=('GPL3')
-makedepends=('doxygen' 'ffmpeg' 'fftw' 'jack' 'python-numpy'
-'python-setuptools' 'python-sphinx' 'python2-numpy' 'python2-setuptools'
-'txt2man' 'waf')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://${pkgbase}.org/pub/${pkgbase}-${pkgver}.tar.bz2")
-sha512sums=('0cb81bb4b15051db3f3f4d160d500af56fdfb237e0a74e3f366f53c2870030aa0a7cee8469a611a9694c36b8866d3d42ffb48241c999de08f3fee43e6d903130')
-
-prepare() {
- cp -av "${pkgbase}-${pkgver}" "${pkgname[2]}-${pkgver}"
- (
- cd "${pkgname}-${pkgver}"
- rm -rv waflib
- )
- (
- cd "${pkgname[2]}-${pkgver}"
- # python2 shebang
- sed -e '1s/python/&2/' \
- -i "python/lib/${pkgbase}/"{__init__,cmd,cut}.py \
- -i "python/tests/"*.py
- # console_scripts names
- sed -e 's/aubio =/aubio2 =/g' \
- -e 's/aubiocut/&2/' \
- -i setup.py
- )
-}
-
-build() {
- cd "${pkgbase}-${pkgver}"
- waf configure --prefix=/usr \
- --alltests \
- --enable-fftw3 \
- --libdir=/usr/lib
- waf build
- python setup.py build
- cd ../"${pkgname[2]}-${pkgver}"
- python2 setup.py build
-}
-
-check() {
- local _py3_ver=$(python3 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))")
- local _py2_ver=$(python2 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))")
- local PYTHON2_PATH="${srcdir}/${pkgname[2]}-${pkgver}/build/lib.linux-$CARCH-${_py2_ver}/:${PYTHONPATH}"
- local PYTHON3_PATH="${srcdir}/${pkgbase}-${pkgver}/build/lib.linux-$CARCH-${_py3_ver}/:${PYTHONPATH}"
- cd "${pkgbase}-${pkgver}"
- PYTHONPATH="${PYTHON3_PATH}" \
- LD_LIBRARY_PATH="${PWD}/build/src" \
- py.test python/tests
-
- cd ../"${pkgname[2]}-${pkgver}"
- PYTHONPATH="${PYTHON2_PATH}" \
- LD_LIBRARY_PATH="${PWD}/build/src" \
- py.test2 python/tests
-}
-
-package_aubio() {
- pkgdesc="A tool for extracting annotations from audio signals"
- depends=('ffmpeg' 'fftw')
- optdepends=('python2-aubio: Python 2.x interface'
- 'python-aubio: Python 3.x interface')
- groups=('pro-audio')
- cd "${pkgname}-${pkgver}"
- 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}-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' 'python-setuptools')
- cd "${pkgbase}-${pkgver}"
- python setup.py install --skip-build \
- --optimize=1 \
- --root="${pkgdir}"
- 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' 'python2-setuptools')
- cd "${pkgname}-${pkgver}"
- python2 setup.py install --skip-build \
- --optimize=1 \
- --root="${pkgdir}"
- install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
- -vDm 644 {AUTHORS,ChangeLog,README.md}
-}
-
-# vim:set ts=2 sw=2 et:
Copied: aubio/repos/community-x86_64/PKGBUILD (from rev 532393, aubio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-23 22:05:06 UTC (rev 532394)
@@ -0,0 +1,70 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Ray Rashif <schiv at archlinux.org>
+# Contributor: Tobias Kieslich tobias [funnychar] archlinux org
+
+pkgbase=aubio
+pkgname=('aubio' 'python-aubio')
+pkgver=0.4.9
+pkgrel=6
+pkgdesc="A tool for extracting annotations from audio signals"
+arch=('x86_64')
+url="https://aubio.org/"
+license=('GPL3')
+makedepends=('doxygen' 'ffmpeg' 'fftw' 'jack' 'python-numpy'
+'python-setuptools' 'python-sphinx' 'txt2man' 'waf')
+checkdepends=('python-pytest')
+source=("https://${pkgbase}.org/pub/${pkgbase}-${pkgver}.tar.bz2")
+sha512sums=('0cb81bb4b15051db3f3f4d160d500af56fdfb237e0a74e3f366f53c2870030aa0a7cee8469a611a9694c36b8866d3d42ffb48241c999de08f3fee43e6d903130')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ rm -rv waflib
+}
+
+build() {
+ cd "${pkgbase}-${pkgver}"
+ waf configure --prefix=/usr \
+ --alltests \
+ --enable-fftw3 \
+ --libdir=/usr/lib
+ waf build
+ python setup.py build
+}
+
+check() {
+ local _py3_ver=$(python3 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))")
+ local PYTHON3_PATH="${srcdir}/${pkgbase}-${pkgver}/build/lib.linux-$CARCH-${_py3_ver}/:${PYTHONPATH}"
+ cd "${pkgbase}-${pkgver}"
+ PYTHONPATH="${PYTHON3_PATH}" \
+ LD_LIBRARY_PATH="${PWD}/build/src" \
+ py.test python/tests
+}
+
+package_aubio() {
+ pkgdesc="A tool for extracting annotations from audio signals"
+ depends=('fftw' 'glibc' 'libavcodec.so' 'libavformat.so' 'libavutil.so'
+ 'libswresample.so' 'libjack.so' 'libsamplerate' 'libsndfile')
+ optdepends=('python2-aubio: Python 2.x interface'
+ 'python-aubio: Python 3.x interface')
+ provides=('libaubio.so')
+ groups=('pro-audio')
+ cd "${pkgname}-${pkgver}"
+ 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}-doc" \
+ "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 {AUTHORS,ChangeLog,README.md} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
+
+package_python-aubio() {
+ pkgdesc="Python 3.x bindings for aubio"
+ depends=('glibc' 'libaubio.so' 'python-numpy' 'python-setuptools')
+ cd "${pkgbase}-${pkgver}"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --root="${pkgdir}"
+ install -vDm 644 {AUTHORS,ChangeLog,README.md} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list