# Maintainer: Natanael Copa pkgname=aports-build pkgver=1.5.5 pkgrel=2 pkgdesc="MQTT based build-on-git-push scripts for Alpine Linux" url="https://alpinelinux.org" arch="noarch" license="GPL-2.0" options="!check" depends="abuild>2.20.0 build-base mosquitto-clients openssh-client mqtt-exec rsync lua-aports>1.0.0 lua5.2-cjson lua5.2-mqtt-publish pigz git" makedepends="$depends_dev mosquitto-dev" install="$pkgname.pre-install" source="aports-build aports-build.initd mqtt-exec.aports-build.confd report-build-errors.lua " builddir="$srcdir" package() { install -Dm755 "$srcdir"/aports-build \ "$pkgdir"/usr/bin/aports-build install -d "$pkgdir"/etc/init.d ln -s mqtt-exec "$pkgdir"/etc/init.d/mqtt-exec.aports-build install -Dm644 "$srcdir"/mqtt-exec.aports-build.confd \ "$pkgdir"/etc/conf.d/mqtt-exec.aports-build install -Dm644 "$srcdir"/report-build-errors.lua \ "$pkgdir"/usr/share/buildrepo/plugins/report-build-errors.lua install -d "$pkgdir"/etc/buildrepo cat >"$pkgdir"/etc/buildrepo/config.lua <<-EOF -- logurlprefix = "https://build.alpinelinux.org/buildlogs/" -- mqttbroker = "localhost" -- logtarget = "distfiles.alpinelinux.org:/var/cache/distfiles/buildlogs/" EOF } sha512sums=" 2a0f8649130b8f91a5949a2b12d5e97438ef87d2fb18877c5840df6abc1df3f97055322b56da69fbcce532e1faf498486fcb0d00641b759057ab35c628db8477 aports-build 821035bda47152c341ec94bf960fa67e3377051826712ceb74f39103e6e422777b6e082231bfb87865653d2b93b7d3154cfc24abf65a52e3e66da69412dd7e41 aports-build.initd 62ed5cb6d1fef03fa707512c8c99c572a91e64706ebcc2e7097108811818615618bab908292d0ba0ad2afe93a27333d9c91deb347d6c99703eb8983d1ee5f480 mqtt-exec.aports-build.confd 939ba54ab4159bc8fcd0cb08f16f67dac05d29c77005da6fca0463048ab991765665b35f2feb978bfd8409bd13fdbdf3d47a7652df842e76504d076ac040c337 report-build-errors.lua "