pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
task: Specify version to make "--version" work properly
Module Name: pkgsrc-wip
Committed By: Iku Iwasa <iku.iwasa%gmail.com@localhost>
Pushed By: iquiw
Date: Sun May 24 11:11:21 2020 +0900
Changeset: 13f1d88de6a11350c55b2d67e89b4f9b80ef739e
Modified Files:
task/Makefile
Log Message:
task: Specify version to make "--version" work properly
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=13f1d88de6a11350c55b2d67e89b4f9b80ef739e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
task/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diffs:
diff --git a/task/Makefile b/task/Makefile
index 7e51df2f48..50232fc844 100644
--- a/task/Makefile
+++ b/task/Makefile
@@ -21,6 +21,10 @@ INSTALLATION_DIRS+= bin \
share/bash-completion/completions \
share/zsh/site-functions
+do-build:
+ ${RUN} ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install \
+ -ldflags '-X main.version=${PKGVERSION_NOREV}' -v ${GO_BUILD_PATTERN}
+
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/task ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/completion/bash/task.bash \
Home |
Main Index |
Thread Index |
Old Index