blob: 3c66a5dd7aa55bf16ff711f265f3300add1e15cb (
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.2
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="7f31cfcfeb5e996870709980ac96d678 mqtt-exec-0.2.tar.gz
2b2088540f78a60e0fd5d2c2961444af mqtt-exec.initd"
sha256sums="a944064360622224667d16cea81b47daf66eb92bbdbb4c25cad8f0e21a6e4c1f mqtt-exec-0.2.tar.gz
9f7dc584a9f5db9fc2bfb74d78242f7aba18ddfb729a863c9a3b223673c1a3b3 mqtt-exec.initd"
sha512sums="45775cb53c70eff10b4c75e5aebbb047800c158b367944dfead20aefeafd3e9908bff84594c0fa20a9a3cc8f3f6067e3ebc734d5d984c9df1bfbdcab1a4ec0a5 mqtt-exec-0.2.tar.gz
8e12fe24476dc7564c164bdb90bf9603796ffafb931dbc3d807f8f78cc271d65b98015447920d116dc12c96240272b01223574c607e8998f0da377164dba3516 mqtt-exec.initd"
|