summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8022e8797e83312ed35080313464f39bd83367c8 (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
# Maintainer: Malte Jürgens <maltejur@dismail.de>

pkgname=ikea-smartlight-git
pkgver=7ad5763852f2163c3bd50ef9de0663079e9dfee7
pkgrel=1
pkgdesc="python framework for controlling the Ikea smart lights (tradfri) "
arch=("x86_64")
url="https://github.com/maltejur/ikea-smartlight/tree/fix_KeyError"
license=("GPL-3.0")
depends=(python python-tqdm libcoap)
source=("$pkgname-$pkgver.tar.gz::https://github.com/maltejur/ikea-smartlight/archive/7ad5763852f2163c3bd50ef9de0663079e9dfee7.tar.gz")
sha256sums=("9c4acd6df33f77e2492f9c56876793c4eafbfd2dcbac9a1238441efab5ed7c78")

build() {
  cd ikea-smartlight-$pkgver
  mv tradfri-authenticate.py tradfri-authenticate
  mv tradfri-groups.py tradfri-groups
  mv tradfri-lights.py tradfri-lights
  mv tradfri-status.py tradfri-status
}

package() {
  cd ikea-smartlight-$pkgver
  mkdir --parents $pkgdir/usr/bin
  cp --parents -rv * $pkgdir/usr/bin
}