summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96f475c05aaf0e50dc2531af7205d3600673ffb5 (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
43
44
45
46
# Maintainer: Ingo Meyer <IJ_M@gmx.de>

pkgname="radiotray-ng-mpris"
pkgver="0.1.3"
pkgrel="1"
pkgdesc="A wrapper script for Radiotray-NG which provides an MPRIS2 interface."
arch=("any")
url="https://github.com/IngoMeyer441/radiotray-ng-mpris"
license=("MIT")
depends=(
    "python"
    "python-mpris_server"
    "python-pydbus"
    "python-yacl"
    "radiotray-ng"
)
makedepends=("python-setuptools")
source=("https://github.com/IngoMeyer441/radiotray-ng-mpris/archive/v${pkgver}.tar.gz")
sha256sums=("ca42fc5e6079ebd408af61504c5d0ea27cab16d6885a428180c4f2dcf8e0e70c")

build() {
    cd "${srcdir}/${pkgname}-${pkgver}" || return
    python setup.py build
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}" || return
    python setup.py install --optimize=1 \
                            --prefix=/usr \
                            --root="${pkgdir}" \
                            --skip-build && \
    cd "${pkgdir}" && \
    mkdir -p usr/share/applications && \
    cat <<-EOF > "usr/share/applications/radiotray-ng-mpris.desktop" || return
		[Desktop Entry]
		Categories=AudioVideo;Audio;Player;GTK;
		Comment=A wrapper script for Radiotray-NG which provides an MPRIS2 interface.
		Exec=/usr/bin/radiotray-ng-mpris
		GenericName=Radiotray-NG MPRIS
		Icon=/usr/share/icons/hicolor/256x256/apps/radiotray-ng-notification.png
		Name=Radiotray-NG MPRIS
		Terminal=false
		Type=Application
		Version=${pkgver}
	EOF
}