From 8d965d8b36fa4212098df0fe5e0e964588bd6125 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Thu, 31 Dec 2020 18:17:09 +0000 Subject: [PATCH 1/2] New package: gotify-server-2.0.20 --- srcpkgs/gotify-server/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/gotify-server/template diff --git a/srcpkgs/gotify-server/template b/srcpkgs/gotify-server/template new file mode 100644 index 00000000000..fab21374aa4 --- /dev/null +++ b/srcpkgs/gotify-server/template @@ -0,0 +1,22 @@ +# Template file for 'gotify-server' +pkgname=gotify-server +version=2.0.20 +revision=1 +wrksrc="server-$version" +build_style=go +go_import_path="github.com/gotify/server/v2" +short_desc="Simple server for sending and receiving messages" +maintainer="Cameron Nemo " +license="MIT" +homepage="https://gotify.net" +distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz" +checksum=18b656af071368a37493286a2fe6718ec9e50fcaa09ace651c4d72971cc70e89 +nocross="not without bfd" + +# Cross builds fail with -fuse-ld=gold +# LDFLAGS="-fuse-ld=bfd" # can enable with Go 1.15.6+ + +post_install() { + mv "${DESTDIR}/usr/bin/server" "${DESTDIR}/usr/bin/gotify-server" + vlicense LICENSE +} From 3106af060fcf20cc986ceada8eea532df8cb9204 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Thu, 31 Dec 2020 18:17:26 +0000 Subject: [PATCH 2/2] New package: gotify-cli-2.2.0 --- srcpkgs/gotify-cli/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/gotify-cli/template diff --git a/srcpkgs/gotify-cli/template b/srcpkgs/gotify-cli/template new file mode 100644 index 00000000000..54dabd1ae39 --- /dev/null +++ b/srcpkgs/gotify-cli/template @@ -0,0 +1,22 @@ +# Template file for 'gotify-cli' +pkgname=gotify-cli +version=2.2.0 +revision=1 +wrksrc="cli-$version" +build_style=go +go_import_path="github.com/gotify/cli/v2" +short_desc="Command line interface for pushing messages to a Gotify server" +maintainer="Cameron Nemo " +license="MIT" +homepage="https://gotify.net" +distfiles="https://github.com/gotify/cli/archive/v${version}.tar.gz" +checksum=d4e6fbc087c6cc4b320b3fcae4c28d65d514b7e55c95e4c0e764abb3a6c94064 +nocross="not without bfd" + +# Cross builds fail with -fuse-ld=gold +# LDFLAGS="-fuse-ld=bfd" # can enable with Go 1.15.6+ + +post_install() { + mv "${DESTDIR}/usr/bin/cli" "${DESTDIR}/usr/bin/gotify" + vlicense LICENSE +}