# Maintainer: Sergey Khobta pipname=avrcp-volume pkgname=$pipname pkgver=0.7.5 pkgrel=2 pkgdesc='Avrcp volume controller' arch=(any) url='https://gitlab.com/hxss-linux/avrcp-volume' license=(MIT) depends=('python' 'python-dbus-next' 'python-pulsectl' 'desktop-notify') optdepends=('python-systemd: systemd logging') makedepends=('python-pip' 'curl' 'jq' 'findutils') install='INSTALL' pkgver() { curl -s https://pypi.org/pypi/$pipname/json | jq -r .info.version } package() { PIP_CONFIG_FILE=/dev/null pip install $pipname \ --root=$pkgdir \ --isolated \ --no-user \ --no-deps \ --ignore-installed \ --no-warn-script-location \ --quiet python -O -m compileall "$pkgdir" install -Dm644 $(find $pkgdir -name LICENSE*) \ -t "$pkgdir/usr/share/licenses/$pkgname" }