summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8820028c6db5daf8ac720fbd3202d488c573fa5e (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
# Maintainer: Matthew Gamble <git@matthewgamble.net>
# Contributor: tuftedocelot@fastmail.fm
# Contributor: flu

pkgname=mopidy-tunein
pkgver=1.1.0
pkgrel=3
pkgdesc="Mopidy extension for playing music from TuneIn"
arch=("any")
url="https://github.com/kingosticks/mopidy-tunein"
license=("Apache")
depends=(
    "mopidy"
    "python"
    "python-setuptools"
    "python-pykka"
    "python-requests"
)
source=("https://pypi.io/packages/source/M/Mopidy-TuneIn/Mopidy-TuneIn-${pkgver}.tar.gz")
sha256sums=("910a96552d239bfaee6ef3635cf9018f7ef733ac311cd0b11f27334dbd56c107")

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

    python setup.py build
}

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

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

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