PKGBUILD 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Maintainer: txtsd <aur.archlinux@ihavea.quest>
  2. # Contributor: Sibren Vasse <arch at sibrenvasse dot nl>
  3. # Contributor: demian <mikar ατ gmx δοτ de>
  4. pkgname=blockify-git
  5. pkgver=v3.6.3.r24.g370d321
  6. pkgrel=2
  7. pkgdesc="Mutes Spotify advertisements."
  8. arch=("any")
  9. url="https://github.com/carlocastoldi/blockify"
  10. license=("MIT")
  11. depends=("spotify" "pulseaudio" "alsa-utils" "wmctrl" "libwnck3" "pygtk"
  12. "gst-python" "python-dbus" "python-setuptools" "python-docopt")
  13. makedepends=("python-build" "python-installer" "python-wheel")
  14. conflicts=("blockify")
  15. provides=("blockify")
  16. source=("${pkgname}::git+https://github.com/carlocastoldi/blockify#branch=pipewire")
  17. sha256sums=('SKIP')
  18. pkgver() {
  19. cd ${pkgname}
  20. git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/[_-]/./g'
  21. }
  22. build() {
  23. cd "${srcdir}/${pkgname}"
  24. python -m build --wheel --no-isolation
  25. }
  26. package() {
  27. cd "${srcdir}/${pkgname}"
  28. python -m installer --destdir="$pkgdir" dist/*.whl
  29. install -Dm 644 "${srcdir}/${pkgname}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
  30. }