summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac2e14f312f36c3c694ed92173056d7940dc8cc5 (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
# Maintainer: Lars Hagström <lars@foldspace.nu>
pkgname=python-pyharmony-git
pkgver=r20.1b20822
pkgrel=1
pkgdesc="Python library for connecting to and controlling the Logitech Harmony Link"
arch=('any')
url="https://github.com/DonOregano/pyharmony"
license=('BSD')
groups=()
depends=('python-sleekxmpp')
makedepends=('git' 'python-setuptools')
options=(!emptydirs)
install=
source=("$pkgname"::"git+https://github.com/DonOregano/pyharmony.git")
sha1sums=('SKIP')
backup=()

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


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