summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab01aeb172730909520e7cecadc862228e505baf (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
# Maintainer: Bryn Edwards <bryn.edwards@gmail.com>
pkgname=supysonic-git
_pkgname=supysonic
pkgver=0.3.488.g5367f06
pkgrel=1
pkgdesc="A Python implementation of the Subsonic server API."
arch=('any')
url="https://github.com/spl0k/supysonic"
license=('AGPL')
depends=( 
  'python-flask'
  'python-pony'
  'python-pillow'
  'python-requests'
  'python-mutagen'
  'python-zipstream'
)
makedepends=(
  'git'
  'python-setuptools'
  'python-pip'
)
optdepends=('python-watchdog: Watch for library changes using supysonic-watcher')
source=("${_pkgname}::git+https://github.com/spl0k/supysonic")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  echo "$(grep '^VERSION =' supysonic/__init__.py|head -n1|cut -d\' -f2).$(git rev-list --count HEAD).g$(git describe --always)"
}

build() {
  cd $_pkgname
  python setup.py build
}

package() {
  cd $_pkgname
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}