From c6f82ee02330c99b04bbd3633a382762053961ac Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 23 Jun 2023 15:52:48 +0200 Subject: [PATCH] New package: wtfutil-0.43.0 --- srcpkgs/wtfutil/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/wtfutil/template diff --git a/srcpkgs/wtfutil/template b/srcpkgs/wtfutil/template new file mode 100644 index 000000000000..80b9e4a09855 --- /dev/null +++ b/srcpkgs/wtfutil/template @@ -0,0 +1,21 @@ +# Template file for 'wtfutil' +pkgname=wtfutil +version=0.43.0 +revision=1 +build_style=go +go_import_path="github.com/wtfutil/wtf" +short_desc="Personal information dashboard for the terminal" +maintainer="Bnyro " +license="MPL-2.0" +homepage="http://wtfutil.com/" +distfiles="https://github.com/wtfutil/wtf/archive/v${version}.tar.gz" +checksum=bb48e38e479b26e0b956b163e4804e99cd49545214090c2fdf99e54382b3d651 + +do_install() { + # Rename the binary to wtfutil when installing + if [ "$CROSS_BUILD" ]; then + vbin ${GOPATH}/bin/linux_${GOARCH}/wtf wtfutil + else + vbin ${GOPATH}/bin/wtf wtfutil + fi +}