summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 240809bcef2cb775ada17798bcff890b8de97629 (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
# Maintainer: Cyril Levis <pkgbuilds AT levis DOT name>

pkgname=bum-git
pkgver=r54.004d795
pkgrel=3
pkgdesc="Download and display album art for mpd/mopidy tracks."
arch=('any')
url="https://github.com/dylanaraps/bum"
license=('Apache License, Version 2.0')
groups=()
depends=('python' 'python-mpv' 'python-musicbrainzngs' 'python-mpd2')
makedepends=('python-setuptools' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/dylanaraps/bum.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	python setup.py clean --all
	python setup.py build
}

package() {
	cd "$srcdir/${pkgname%-git}"
	python setup.py install --root "${pkgdir}/"
}