From df8147b0a577ad64ea4e964d0d909c59d0803ca4 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 21 Dec 2021 19:19:59 -0500 Subject: [PATCH] New package: gotify-cli-2.2.1 --- srcpkgs/gotify-cli/template | 21 +++++++++++++++++++++ 1 file changed, 21 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..50754553ec4 --- /dev/null +++ b/srcpkgs/gotify-cli/template @@ -0,0 +1,21 @@ +# Template file for 'gotify-cli' +pkgname=gotify-cli +version=2.2.1 +revision=1 +wrksrc="cli-$version" +build_style=go +go_import_path="github.com/gotify/cli/v2" +go_ldflags="-w -s -X main.Version=${version} \ + -X main.BuildDate=${SOURCE_DATE_EPOCH} \ + -X main.Mode=prod" +short_desc="Command line interface for pushing messages to a Gotify server" +maintainer="Joel Beckmeyer " +license="MIT" +homepage="https://gotify.net" +distfiles="https://github.com/gotify/cli/archive/v${version}.tar.gz" +checksum=9013f4afdcc717932e71ab217e09daf4c48e153b23454f5e732ad0f74a8c8979 + +post_install() { + mv ${DESTDIR}/usr/bin/cli ${DESTDIR}/usr/bin/gotify-cli + vlicense LICENSE +}