diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-25 13:02:51 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-25 13:04:40 +0100 |
commit | a669363bc4104f929ddfe059a31e2566dff74027 (patch) | |
tree | 4a626e7a3a210a8c6ecac467d2861267db9bccd5 /main/alpine-git-mirror-syncd | |
parent | 4f54fa8fc32d6fc249b46156392b0ab34da3a713 (diff) | |
download | aports-a669363bc4104f929ddfe059a31e2566dff74027.tar.bz2 aports-a669363bc4104f929ddfe059a31e2566dff74027.tar.xz |
main/alpine-git-mirror-syncd: move from testing
Diffstat (limited to 'main/alpine-git-mirror-syncd')
-rw-r--r-- | main/alpine-git-mirror-syncd/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/alpine-git-mirror-syncd/APKBUILD b/main/alpine-git-mirror-syncd/APKBUILD new file mode 100644 index 0000000000..72574046de --- /dev/null +++ b/main/alpine-git-mirror-syncd/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=alpine-git-mirror-syncd +_shortname=git-mirror-syncd +pkgver=0.3.0 +pkgrel=0 +pkgdesc="Lua script that listens on MQTT and synchronizes Git mirrors when notified about changes" +url="https://github.com/jirutka/alpine-git-mirror-syncd" +arch="noarch" +license="MIT" +depends="ca-certificates git lua5.1 lua5.1-cjson lua5.1-mosquitto" +source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" +options="!check" # upstream does not provide any tests yet + +prepare() { + default_prepare + + sed -i 's|^#!/usr/bin/env lua$|&5.1|' "$builddir"/*.lua +} + +package() { + cd "$builddir" + + install -D -m 755 $_shortname.lua "$pkgdir"/usr/bin/$_shortname + install -D -m 644 config.lua.example "$pkgdir"/etc/$_shortname/config.lua + install -D -m 755 etc/init.d/$_shortname "$pkgdir"/etc/init.d/$_shortname + install -D -m 644 etc/conf.d/$_shortname "$pkgdir"/etc/conf.d/$_shortname +} + +sha512sums="714deff8915eefbc48f6786d3142f75a8befbd48f6bf1e20ba369fd66e5e1c41c7226972b199b736c43fa70728142daf6ae26f211c0b37ac87d4a2d2f959f8f1 alpine-git-mirror-syncd-0.3.0.tar.gz" |