summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a2b590bd6db6518d3db08ca0d6c0478146bbb24 (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: Matthew Gamble <git@matthewgamble.net>

pkgname=mopidy-bandcamp
pkgver=1.1.5
pkgrel=1
pkgdesc="Mopidy backend for Bandcamp"
arch=("any")
url="https://github.com/impliedchaos/mopidy-bandcamp"
license=("MIT")
depends=(
    "mopidy"
    "python"
    "python-setuptools"
    "python-pykka"
)
source=("https://pypi.io/packages/source/M/Mopidy-Bandcamp/Mopidy-Bandcamp-${pkgver}.tar.gz")
sha256sums=("c20f7370e29f650461a720350aee70bddc0aa66ae572bda6f66aea0478145c04")

build() {
    cd "Mopidy-Bandcamp-${pkgver}"

    python setup.py build
}

package() {
    cd "Mopidy-Bandcamp-${pkgver}"

    PYTHONHASHSEED=0 python setup.py install --root="${pkgdir}" --optimize=1 --skip-build

    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/mopidy-bandcamp/LICENSE"
    install -Dm644 README.rst "${pkgdir}/usr/share/doc/mopidy-bandcamp/README.rst"
}