Date: Saturday, July 28, 2018 @ 20:33:42 Author: dvzrv Revision: 363918
archrelease: copy trunk to community-staging-any Added: python-jack-client/repos/community-staging-any/ python-jack-client/repos/community-staging-any/PKGBUILD (from rev 363917, python-jack-client/trunk/PKGBUILD) ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) Copied: python-jack-client/repos/community-staging-any/PKGBUILD (from rev 363917, python-jack-client/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-07-28 20:33:42 UTC (rev 363918) @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: David Runge <d...@sleepmap.de> +_name=JACK-Client +pkgname=python-jack-client +pkgver=0.4.4 +pkgrel=3 +pkgdesc="JACK Audio Connection Kit (JACK) Client for Python" +arch=('any') +url="https://github.com/spatialaudio/jackclient-python/" +license=('MIT') +depends=('jack' 'python-cffi') +makedepends=('python-setuptools') +checkdepends=('python-pytest') +optdepends=('python-numpy: Access input/output buffers as numpy arrays') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +sha512sums=('09fad137c81ea7e4cfe3cb63e918203a45d6f281342dd9549d8243648b666ff324ca7f902f844d461c0243a6d3e088471d8b8a95bd99b043c0d1ea91173f3cf0') +validpgpkeys=() + +prepare() { + mv -v "${_name}-${pkgver}" "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + python setup.py build +} + +check() { + cd "$pkgname-$pkgver" + python setup.py test +} + +package() { + cd "$pkgname-$pkgver" + python setup.py install --skip-build \ + --optimize=1 \ + --prefix=/usr \ + --root="${pkgdir}" + # license + install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" + # docs + install -vDm 644 {CONTRIBUTING,NEWS,README}.rst \ + -t "${pkgdir}/usr/share/doc/${pkgname}/" + # examples + install -vDm 755 examples/*.py \ + -t "${pkgdir}/usr/share/doc/${pkgname}/examples/" +}