summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 955cfbaba4ed62c73ba602c232c649e0a7971914 (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 : David Beley <dbeley@protonmail.com>
pkgname=ypc-git
pkgver=1.4.0
pkgrel=1
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
pkgdesc="Convert spotify/deezer/text albums/playlists to youtube urls and/or download audio/video files."
arch=('any')
url="https://github.com/dbeley/${pkgname%-git}"
license=('MIT')
depends=(
        'python'
        'python-setuptools'
        'youtube-dl'
        'python-requests'
        'python-spotipy-git'
        'python-pandas'
        'python-beautifulsoup4'
        'python-lxml'
        'python-tqdm'
        )
source=("git+https://github.com/dbeley/${pkgname%-git}")
md5sums=("SKIP")

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

package() {
  cd "${pkgname%-git}"
  python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}