blob: 41fcfde211f18133694307efbf4e2d9ae47b6911 (
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=1
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
94a6252fd7dc457eafb8f1fd77e5719b mqtt-exec.initd"
sha256sums="8085af26c144f7406933bf122861edb7087db28dc84b812fcfc5cead470bb48f mqtt-exec-0.3.tar.gz
0d8b8bd47739eea4df6469ca4b8ea7e1a5765ab369781a37f53c16b14b8236f6 mqtt-exec.initd"
sha512sums="b683329033fa839254763b0628e32da7ec494b84f83dae42c973faa76412f7d195b9499859b790afa1026d24dbdbda1f6abf5542dc24b2288dcad831a9c32389 mqtt-exec-0.3.tar.gz
31fd302734e05897f06b24e716a3dc4eb695855d50b93cf55a879fc8ccc83ac07e394ec8a92668773a4d6003006dd1a6e40b270cf952e290a744a08249d54a44 mqtt-exec.initd"
|