summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cce7bbd3993affa0b338533795cedc91d01d979b (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
39
40
41
42
# Maintainer: Daniel Maslowski <info@orangecms.org>

_pyname=bandcamp-dl
pkgname=bandcamp-dl-git
pkgver=v0.0.8.12.r4.g4a5e14b
pkgrel=2
pkgdesc="download audio from BandCamp.com"
arch=('any')
url="https://github.com/iheanyi/bandcamp-dl"
license=('Unlicense')
makedepends=('git')
depends=(
  'python'
  'python-beautifulsoup4'
  'python-chardet'
  'python-demjson-git'
  'python-docopt'
  'python-mock'
  'python-mutagen'
  'python-requests'
  'python-unicode-slugify'
  'python-setuptools'
)
provides=("$_pyname")
conflicts=("$_pyname")
options=(!emptydirs)
source=(git://github.com/iheanyi/bandcamp-dl.git)
sha512sums=('SKIP')

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

package() {
  cd "$_pyname"
  sed -i -e 's#json+ld#ld+json#' bandcamp_dl/bandcampjson.py
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt"
}

# vim:set ts=2 sw=2 et: