From f90cb5e45eb5af8c7a6ded88c63fbd8c5c00bb0b Mon Sep 17 00:00:00 2001 From: John Do Date: Mon, 1 Jan 2024 02:11:34 +0700 Subject: [PATCH] New package: godns-3.0.4 --- srcpkgs/godns/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/godns/template diff --git a/srcpkgs/godns/template b/srcpkgs/godns/template new file mode 100644 index 0000000000000..303b79ae4a100 --- /dev/null +++ b/srcpkgs/godns/template @@ -0,0 +1,21 @@ +# Template file for 'godns' +pkgname=godns +version=3.0.4 +revision=1 +build_style=go +go_import_path=github.com/TimothyYe/godns +go_package="${go_import_path}/cmd/godns" +short_desc="Dynamic DNS (DDNS) client tool written in Go" +maintainer="John Do " +license="Apache-2.0" +homepage="https://github.com/TimothyYe/godns" +distfiles="https://github.com/TimothyYe/godns/archive/v${version}.tar.gz" +checksum=1874ac383aaa5d218158ae8862a228307773432479dfd2e22c62d941f372a1ff + +post_patch() { + vsed -e "s,0.1,${version},g" -i ${wrksrc}/cmd/godns/godns.go +} + +post_install() { + vsconf configs/config_sample.json config.json +}