aboutsummaryrefslogtreecommitdiffstats
path: root/main/mqtt-exec/APKBUILD
blob: aa65d3387e0d56aa37a43c3f65e5d53e0b819975 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mqtt-exec
pkgver=0.3
pkgrel=0
pkgdesc="simple MQTT client that executes a command on messages"
url="https://github.com/ncopa/mqtt-exec"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev mosquitto-dev"
install=""
subpackages=""
source="mqtt-exec-$pkgver.tar.gz::https://github.com/ncopa/mqtt-exec/archive/v$pkgver.tar.gz
	mqtt-exec.initd
	"

_builddir="$srcdir"/mqtt-exec-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -D mqtt-exec "$pkgdir"/usr/bin/mqtt-exec || return 1
	install -Dm755 "$srcdir"/mqtt-exec.initd \
		"$pkgdir"/etc/init.d/mqtt-exec || return 1
}

md5sums="25728ae83fe3e5d6918f15f7d12144b2  mqtt-exec-0.3.tar.gz
7815b29f82dd9dad1f66e3746514fc3c  mqtt-exec.initd"
sha256sums="8085af26c144f7406933bf122861edb7087db28dc84b812fcfc5cead470bb48f  mqtt-exec-0.3.tar.gz
b3b82e3af9f2c3fead7000429223a5bf9c226ff8cc788e129556e9ed0ea47f1b  mqtt-exec.initd"
sha512sums="b683329033fa839254763b0628e32da7ec494b84f83dae42c973faa76412f7d195b9499859b790afa1026d24dbdbda1f6abf5542dc24b2288dcad831a9c32389  mqtt-exec-0.3.tar.gz
5f770878c482fcba3f37b80fa3addb5538c81d3c10bcc10385822f24a1b25b2271275eb494a0d5c2ef974dde0ad57b8b82756a85abd2fd48f13a20cc7c3286f0  mqtt-exec.initd"