From ac81c6d479ead6a7fe29edcc166cd11c770772ae Mon Sep 17 00:00:00 2001 From: dkwo Date: Thu, 25 Jan 2024 16:42:41 -0500 Subject: [PATCH] lf: build with cgo=0, run checks --- srcpkgs/lf/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/lf/template b/srcpkgs/lf/template index eac3fd04beab0..9c718153bc72a 100644 --- a/srcpkgs/lf/template +++ b/srcpkgs/lf/template @@ -1,7 +1,7 @@ # Template file for 'lf' pkgname=lf version=r31 -revision=1 +revision=2 build_style=go go_import_path="github.com/gokcehan/${pkgname}" go_ldflags="-X main.gVersion=$version" @@ -11,6 +11,11 @@ license="MIT" homepage="https://github.com/gokcehan/lf" distfiles="https://github.com/gokcehan/lf/archive/${version}.tar.gz" checksum=ed47fc22c58cf4f4e4116a58c500bdb9f9ccc0b89f87be09f321e8d1431226ab +export CGO_ENABLED=0 + +do_check() { + go test ./... +} post_install() { vlicense LICENSE