summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2201ce2d7b6685c1cc9026aba78067ccf5d43ed2 (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: Gabriel Jülke <pyriand3r at gmail dot com>

_pkgname=mopidy-audioaddict-git
pkgname=${_pkgname}-git
pkgver=1.0.0.r0.g07487f8
pkgrel=1
pkgdesc="Mopidy extension for playing music using the audioaddict service"
arch=('any')
url="https://github.com/nilicule/mopidy-audioaddict"
license=('APACHE')
depends=(
    'mopidy'
    'python2-pycountry'
)
makedepends=('python2-setuptools' 'git')
provides=(${_pkgname})
conflicts=(${_pkgname})
options=(!emptydirs)
source=("${_pkgname}::git+https://github.com/nilicule/mopidy-audioaddict.git")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "${srcdir}/${_pkgname}"
    python2 setup.py install --root="${pkgdir}" --optimize=1
}

# vim:set ts=4 sw=4 et: