[projects/template-specs] golang: alternative install

glen glen at pld-linux.org
Tue Nov 22 20:29:41 CET 2016


commit 45e36d7d6fa7cd45216a44946f69a7ce851133d7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Nov 11 11:10:37 2016 +0200

    golang: alternative install

 golang-package.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/golang-package.spec b/golang-package.spec
index a57337b..146a14a 100644
--- a/golang-package.spec
+++ b/golang-package.spec
@@ -47,6 +47,10 @@ packages which use import path with %{import_path} prefix.
 install -d src/$(dirname %{import_path})
 ln -s ../../.. src/%{import_path}
 
+# alternative
+install -d src/$(dirname %{import_path})
+mv %{name}-%{version} src/%{import_path}
+
 %build
 export GOPATH=$(pwd)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/67c043774a2a7e57337440b91528eae61f7a30ee



More information about the pld-cvs-commit mailing list