diff --git a/srcpkgs/go-size-analyzer/template b/srcpkgs/go-size-analyzer/template new file mode 100644 index 00000000000000..da78f9e4724546 --- /dev/null +++ b/srcpkgs/go-size-analyzer/template @@ -0,0 +1,20 @@ +# Template file for 'go-size-analyzer' +pkgname=go-size-analyzer +version=1.10.2 +revision=1 +build_style=go +go_import_path="github.com/Zxilly/go-size-analyzer" +go_package="${go_import_path}/cmd/gsa" +make_check_args="-skip Test(DiffJSONAndBinary|CommonResult|FullOutput)" # require the tui +short_desc="Tool for analyzing the size of compiled Go binaries" +maintainer="Bnyro " +license="AGPL-3.0-only" +homepage="https://github.com/Zxilly/go-size-analyzer" +distfiles="https://github.com/Zxilly/go-size-analyzer/archive/refs/tags/v${version}.tar.gz" +checksum=4c8a7820564f462a953aaada38f212e0248464205315d6715cc98e274266ba53 + +post_install() { + # avoid name clash with 'gwenhywfar' package + mv ${DESTDIR}/usr/bin/{gsa,go-size-analyzer} + vlicense LICENSE +}