summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6b283790e20bb50a2d98b5a42248a3465bdf3a6 (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
35
36
37
38
# Maintainer: Kyle MacLeod <aur.kmac5@recursor.net>

pkgname=mopidy-ytmusic
pkgver=0.3.9
pkgrel=1
pkgdesc="Mopidy extension for playing music from Youtube Music"

arch=('any')
url="https://github.com/jmcdo29/mopidy-ytmusic"
license=('APACHE')
depends=(
  'mopidy'
  'python-certifi'
  'python-charset-normalizer'
  'python-idna'
  'python-importlib-metadata'
  'python-pykka'
  'python-pytube'
  'python-setuptools'
  'python-requests'
  'python-tornado'
  'python-urllib3'
  'python-zipp'
  'python-ytmusicapi')
makedepends=('python' 'git')

source=("$pkgname-${pkgver}.zip::$url/archive/refs/heads/master.zip")

package() {
  cd "mopidy-ytmusic-master"

  # change pytube dependency:
  sed -i 's/pytube>=12.1.0/pytube>=15/' setup.py

  python setup.py install --root="${pkgdir}/" --optimize=1
}

sha256sums=('474a7cbb7090051ba3f8deb13fa42b0bdfafe9882e298f2e660d6c2c5643fa5b')