Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/duf/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile 16 Aug 2022 15:55:18 -0000 1.7
+++ Makefile 2 Jan 2023 15:53:06 -0000
@@ -4,7 +4,7 @@ MODGO_MODNAME = github.com/muesli/duf
MODGO_VERSION = v0.8.1
DISTNAME = duf-${MODGO_VERSION}
-PKGNAME = duf-0.8.1
+REVISION = 0
CATEGORIES = sysutils
@@ -14,6 +14,8 @@ MAINTAINER = Gonzalo L. R. <gonzalo@open
PERMIT_PACKAGE = Yes
MODULES = lang/go
+
+MODGO_LDFLAGS += -X main.Version=${MODGO_VERSION:S/v//}
.include "modules.inc"
Hi,
my proposal with a little patch for sysutils/duf v0.8.1 :
- add internal version during build via MODGO_FLAGS
$ duf -version
duf 0.8.1
- add REVISION = 0
- remove unnecessary PKGNAME (duplicate with DISTNAME)
Build and tests OK on amd64
Laurent
No comments:
Post a Comment