summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e0d3eae8fd9e8ee3361ba3b7261308abc41e54c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Carmine Margiotta <car.margiotta@icloud.com>
pkgname='mqtt-sm-git'
pkgver=r103.b35ef81
pkgrel=1
pkgdesc="MQTT System Monitor, compatible with Home Assistant"
arch=('any')
url="https://github.com/cmargiotta/MQTT-System-Monitor"
license=('GPL')
groups=()

depends=(
	'paho-mqtt-c'
	'openssl'
	'lua'
)
makedepends=(
	'git'
	'meson'
	'ninja'
)
checkdepends=()
optdepends=()
provides=(
	'msm'
)
conflicts=(
	'msm'
)
replaces=()
backup=(
	etc/msm/sensors/*
	usr/lib/systemd/system/msm.service
)
options=()
install=
changelog=
source=("$pkgname::git+https://github.com/cmargiotta/MQTT-System-Monitor")
noextract=()
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"
	echo "r$(git rev-list --count HEAD).$(git describe --always)"
}

build() {
	meson --prefix /usr "$pkgname" build
	meson compile -C build
}

package() {
	meson install -C build --destdir "$pkgdir"
}