yochananmarqos

python-pulsectl

Jan 16th, 2021 (edited)
117
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=python-pulsectl
  2. _name=${pkgname#python-}
  3. pkgver=20.5.1
  4. pkgrel=1
  5. epoch=1
  6. pkgdesc="Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)"
  7. arch=('any')
  8. url="https://github.com/mk-fg/python-pulse-control"
  9. license=('MIT')
  10. depends=('python' 'libpulse')
  11. makedepends=('python-setuptools')
  12. source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
  13. sha256sums=('39b0a0e7974a7d6468d826a838822f78b00ac9c3803f0d7bfa9b1cad08ee22db')
  14.  
  15. build() {
  16.     cd "$_name-$pkgver"
  17.     python setup.py build
  18. }
  19.  
  20. # Test fails in chroot
  21. #check() {
  22. #   cd "$_name-$pkgver"
  23. #   python -m unittest pulsectl.tests.all
  24. #}
  25.  
  26. package() {
  27.     cd "$_name-$pkgver"
  28.     export PYTHONHASHSEED=0
  29.     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  30.  
  31.     install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
  32. }
RAW Paste Data