summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b3d3bb1ce528ad7873db7079689083a74297e28 (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
35
36
37
38
39
40
# Maintainer: Frans-Willem Hardijzer <fw@hardijzer.nl>

pkgname=aqarahub
pkgver=r128.59d206e
pkgrel=1
pkgdesc="AqaraHub: Open-source bridge between Xiaomi Zigbee devices and MQTT"
arch=('x86_64')
url="https://github.com/Frans-Willem/AqaraHub"
license=('GPL3')
makedepends=(cmake git)
depends=(boost)
optdepends=()
conflicts=()

source=( "${pkgname}::git+https://github.com/Frans-Willem/AqaraHub.git")
md5sums=('SKIP')

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

prepare() {
	cd "${pkgname}"
	git submodule update --init --recursive
}

build() {
	cd "${pkgname}"
	mkdir -p build
	cd build
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib
	make
}

package() {
	cd "${pkgname}/build"
	make DESTDIR="$pkgdir/" install
}