summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 707f0e27f0c301bea553901ca52c304af32fb47e (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
# Maintainer: ThunderMikey

pkgname=lifxlan-git
_pkgname="lifxlan"
pkgver=411.0db5772
pkgrel=1
pkgdesc="Python library for accessing LIFX devices locally using the official LIFX LAN protocol"
arch=(any)
url="https://github.com/mclarkk/lifxlan"
provides=('lifxlan')
license=('MIT')
depends=(
  'python'
  'python-requests'
  'python-setuptools'
	'python-bitstring'
	'python-netifaces'
  'python-ifaddr'
)
conflicts=()
source=("${_pkgname}::git+${url}.git")
md5sums=('SKIP')

src_git_dir="$srcdir/${_pkgname}"

pkgver() {
  cd "$srcdir/${_pkgname}"
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

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