summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9120cf362c24442347e7ed393e2f56bf62aa3c31 (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: mutantmonkey <aur@mutantmonkey.mx>
pkgname=pyhugh-git
_gitname=pyhugh
pkgver=5.26b0542
pkgrel=4
pkgdesc="Python library for the Hue API",
url="https://github.com/mutantmonkey/pyhugh"
arch=('any')
license=('WTFPL')
depends=('python' 'python-requests>=2.4')
makedepends=('git' 'python-setuptools')
provides=('pyhugh')
conflicts=('pyhugh')
source=('git+https://github.com/mutantmonkey/pyhugh.git')
sha256sums=('SKIP')

pkgver() {
  cd $srcdir/$_gitname
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

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

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