blob: 1d94f4d53ed9563028c8fe2730fdc9d0f32fb691 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: Sibren Vasse <arch at sibrenvasse dot nl>
# Contributor: demian <mikar ατ gmx δοτ de>
pkgname=blockify-git
pkgver=3.6.3.r24.g370d321
pkgrel=2
pkgdesc="Mutes Spotify advertisements."
arch=("any")
url="https://github.com/carlocastoldi/blockify"
license=("MIT")
depends=("spotify" "alsa-utils" "wmctrl" "libwnck3" "gst-python" "gtk4"
"python-dbus" "python-docopt" "gstreamer0.10" "pulse-native-provider")
makedepends=("git" "python-build" "python-installer" "python-wheel"
"python-setuptools")
conflicts=("blockify")
provides=("blockify")
source=("${pkgname}::git+https://github.com/carlocastoldi/blockify#branch=pipewire"
"1-${pkgver}.patch::https://patch-diff.githubusercontent.com/raw/txtsd/blockify/pull/1.patch")
sha256sums=('SKIP'
'03d82625fe8acdc17600cb6a962e6724f879db1640f21d5dc52475f7845edad2')
pkgver() {
cd ${pkgname}
git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/[_-]/./g;s/^v//'
}
prepare() {
cd "${srcdir}/${pkgname}"
patch -p1 -i "${srcdir}/1-${pkgver}.patch"
}
build() {
cd "${srcdir}/${pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "${srcdir}/${pkgname}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
|