summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72708806b99071e6ce596c046023e0cb7bbaea00 (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
# Maintainer: robertfoster
pkgname=soundcloud-dl-git
pkgver=v2.7.3.r0.g4276511
pkgrel=1
pkgdesc="Souncloud music downloader"
url="https://github.com/flyingrub/scdl"
arch=(any)
depends=(
  'python-clint'
  'python-docopt'
  'python-mutagen'
  'python-pathvalidate'
  'python-requests'
  'python-simplejson'
  'python-soundcloud-v2'
  'python-termcolor'
)
makedepends=(git python-{build,installer,wheel} python-setuptools)
source=("$pkgname::git+https://github.com/flyingrub/scdl.git")
license=(GPL2)

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

build() {
  cd "$srcdir/$pkgname"
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$pkgname"
  python -m installer --destdir="$pkgdir" dist/*.whl
}
sha256sums=('SKIP')