summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90615fe961c4e0bd9f42f9d922c6109cb7cbb7dd (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
# Maintainer: dreieck
# Contributor: robertfoster

pkgname=python-soundcloud-git
pkgver=r113.e0f577a
pkgrel=2
pkgdesc="A Python wrapper around the Soundcloud API"
arch=(any)
url="https://github.com/audiobridge/soundcloud-python"
license=("BSD")
depends=(python-requests python-six python-simplejson)
makedepends=(git python-setuptools)
provides=(python-soundcloud)
conflicts=(python-soundcloud)
source=("python-soundcloud::git+${url}.git")
sha256sums=("SKIP")

pkgver() {
  cd python-soundcloud
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd python-soundcloud
  python setup.py build
}

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