blob: 9fd6b7cbe925ccde906d9a8f4d5775275b414ff3 (
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
|
# Maintainer: FichteFoll <fichtefoll2@googlemail.com>
_pkgbase=discordrp-mpris
# _name=${_pkgbase#python-}
pkgname="${_pkgbase}-git"
pkgver=0.3.2.r0.g52e6c6a
pkgrel=2
pkgdesc="Discord Rich Presence based on mpris2 media players"
arch=(any)
url="https://github.com/FichteFoll/discordrp-mpris"
license=('MIT')
depends=('python' 'python-setuptools' 'python-pytoml' 'python-dbussy-git')
makedepends=('git')
optdepends=('cmus: C* Music Player (native mpris support)'
'mpdris2: mpris plugin for mpd'
'mpd-mpris: mpris plugin for mpd'
'mpv-mpris: mpris plugin for mpv'
'vlc: VLC Media Player (native mpris support)')
provides=("${_pkgbase}")
conflicts=("${_pkgbase}")
source=("git+https://github.com/FichteFoll/discordrp-mpris.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgbase}"
(
set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "${srcdir}/${_pkgbase}"
python setup.py install --root="$pkgdir/" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 systemd/discordrp-mpris.service "${pkgdir}/usr/lib/systemd/user/discordrp-mpris.service"
}
|