summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 785a50c34c43b511200fa5271c88ee9499ca2cec (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
# Maintainer: novenary <streetwalkermc@gmail.com>
pkgname=socos
pkgver=0.2.r33.g7719b54
pkgrel=2
pkgdesc="Commandline tool for controlling Sonos devices"
arch=('any')
url="https://github.com/SoCo/socos"
license=('MIT')
depends=('python' 'python-setuptools' 'python-soco')
options=(!emptydirs)
source=("git+https://github.com/SoCo/socos.git#commit=7719b54873235abc068a6bcfbf606e518baeeffc")
md5sums=('SKIP')

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

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

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