# Maintainer: Natanael Copa pkgname=aports-build pkgver=0.9 pkgrel=4 pkgdesc="MQTT based build-on-git-push scripts for Alpine Linux" url="http://alpinelinux.org" arch="noarch" license="GPL2" depends="abuild>2.20.0 mosquitto-clients alpine-sdk mqtt-exec rsync lua-aports" depends_dev="" makedepends="$depends_dev mosquitto-dev" install="$pkgname.pre-install" subpackages="" source="aports-build aports-build.initd mqtt-exec.aports-build.confd " _builddir= 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" } package() { cd "$_builddir" install -Dm755 "$srcdir"/aports-build \ "$pkgdir"/usr/bin/aports-build || return 1 install -d "$pkgdir"/etc/init.d || return 1 ln -s mqtt-exec "$pkgdir"/etc/init.d/mqtt-exec.aports-build || return 1 install -Dm644 "$srcdir"/mqtt-exec.aports-build.confd \ "$pkgdir"/etc/conf.d/mqtt-exec.aports-build || return 1 } md5sums="caaa301bbcbb6e60fa18fc71c5fd44cf aports-build cb4807ea64c4368487786217db087bac aports-build.initd c02d90b2bb0c48e416b707caa8766c50 mqtt-exec.aports-build.confd" sha256sums="97099d6cf6945a185dba23fadc5125a880e627316b1a5aa5d401b1c7e4313ae1 aports-build 3e2d551f72273f37290db342a153abd377397483677a684645d22df7b8a8592f aports-build.initd 7d2001688c3776ffb53c422dee424bcf0346ae20f3df5c6c2f4944022b19cb4d mqtt-exec.aports-build.confd" sha512sums="3b3e465000359f6a199b953a30be80e3088cdb2631e537dc0bc5192a7b218d7adb60577757444bc7150cd1f9311429b1b58be15582b6fbe1236132663b401fa2 aports-build 821035bda47152c341ec94bf960fa67e3377051826712ceb74f39103e6e422777b6e082231bfb87865653d2b93b7d3154cfc24abf65a52e3e66da69412dd7e41 aports-build.initd 93d26e2055dbb02e863bf76b64a549c100decec3fda612ce96ca1464e6d61befa9f57f202553a25cf323e67e266f532d19c7423ff070943a59b3973946d949fe mqtt-exec.aports-build.confd"