summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03d5c94c12a5b0d5b0ec6dfad543c4acb5f13a84 (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
# Maintainer: David Göransson <david.goransson90@gmail.com>

pkgname=lifx-cli-git
_pkgname="lifx-cli"
pkgver=v1.1.r0.g7c935ca
pkgrel=1
pkgdesc="Command line interface for LIFX light bulbs written in Python 2.7"
arch=(any)
url="https://github.com/Rawa/rawa-cli"
license=('MIT')
depends=(
  'python'
  'python-pycurl'
  'python-urllib3'
)
conflicts=('')
source=("${_pkgname}::git+https://github.com/Rawa/lifx-cli.git")
md5sums=('SKIP')

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

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