aboutsummaryrefslogtreecommitdiffstats
path: root/main/mqtt-exec/APKBUILD
blob: abcf97efbc3138ecf308a0d9dae635eac9adf297 (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=2
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
8310d4fc58a554fb3927ceca5a25f0bc  mqtt-exec.initd"
sha256sums="8085af26c144f7406933bf122861edb7087db28dc84b812fcfc5cead470bb48f  mqtt-exec-0.3.tar.gz
ec45ea58d3a67b91731a836f5a9703177c5cc0b129aad6f33cd55ee2fa8192e8  mqtt-exec.initd"
sha512sums="b683329033fa839254763b0628e32da7ec494b84f83dae42c973faa76412f7d195b9499859b790afa1026d24dbdbda1f6abf5542dc24b2288dcad831a9c32389  mqtt-exec-0.3.tar.gz
4f39004c8f5d4389b5a0f350d5e8fcc53fb0aa4a737a77c2bfb1524f2e6cc6649bf8ef68db65ec9c35ce1b60a12aed3607487216ce0fe976cf05c8c3d5cb6cc7  mqtt-exec.initd"