aboutsummaryrefslogtreecommitdiffstats
path: root/main/mqtt-exec/APKBUILD
blob: a7700f6c91187a8d5b18db87ac3da467ec9999a5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mqtt-exec
pkgver=0.4
pkgrel=3
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"
options="!check" # no checks available.
subpackages="$pkgname-dbg $pkgname-openrc"
source="mqtt-exec-$pkgver.tar.gz::https://github.com/ncopa/mqtt-exec/archive/v$pkgver.tar.gz
	0001-authentication-expose-authentication-with-credential.patch
	mqtt-exec.initd
	"

builddir="$srcdir"/mqtt-exec-$pkgver

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
}

sha512sums="1448b2dda0f27a5275c113331ea2bc073ec1740797c1bb5b472ee3e0fd4d3ef4bcdfa6dc42e7540ee154b291c3d70df89f0646899ebb1bfe585d1384797de5e7  mqtt-exec-0.4.tar.gz
418058ecc05922df186d0dcbfeab7656977256a143f0346406598d1cf7331d3ba95a9b004bf3b6581be2e3cb2fbf5e69d7954b4c7ac488863f0318506c7f1c7c  0001-authentication-expose-authentication-with-credential.patch
5cec760ebf79d7dc309d8ef57ab76c132dc7008dd5e972403ed2433487cd4b649f0c23a1a515d985258b57893907c0a5124728bcd8c611899c68c16bd5c9cb1c  mqtt-exec.initd"