summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 713cbf714f368311fce8c88b47e61e5fed99ee10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Maxwell Pray <synthead@gmail.com>

pkgname=home-assistant-lutron-caseta-pro-git
_pkgname=lutron-caseta-pro
pkgrel=2
pkgver=r42.f7678c8
pkgdesc="Lutron Caseta Pro Component for Home Assistant"
arch=("any")
url="https://github.com/upsert/lutron-caseta-pro"
source=("$_pkgname::git+https://github.com/upsert/$_pkgname.git")
depends=("home-assistant")
md5sums=("SKIP")

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

package() {
  mkdir -p "$pkgdir/var/lib/hass"
  cp -ra "$srcdir/$_pkgname/custom_components" "$pkgdir/var/lib/hass"
}