blob: 065d59ee822c3aec99c1707405b60ac03b66e292 (
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
|
# Maintainer: Stefan Gehr <stefan@gehr.xyz>
pkgname=cmus-status-scrobbler-git
_name=cmus-status-scrobbler
pkgver=r74.e970e4d
pkgrel=1
pkgdesc="Standalone scrobbler program, not a continuously running process, written in Python 3 that works together with cmus."
url="https://github.com/vjeranc/cmus-status-scrobbler"
arch=("x86_64" "i686")
license=("GPL3")
depends=("cmus" "python")
makedepends=("git")
source=("git+https://github.com/vjeranc/cmus-status-scrobbler")
b2sums=("SKIP")
install=cmus-status-scrobbler.install
pkgver() {
cd "$_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd $_name
install -Dm755 cmus_status_scrobbler.py "$pkgdir"/usr/bin/cmus_status_scrobbler
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dm644 cmus_status_scrobbler.ini -t "$pkgdir"/usr/share/$_name/
}
|