wok-next rev 21693
updated go-bin (1.10.2 -> 1.14.4)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 30 15:23:03 2020 +0100 (2020-06-30) |
parents | bb7e704ffcaf |
children | fb8e206abe34 |
files | go-bin/receipt |
line diff
1.1 --- a/go-bin/receipt Tue Jun 30 15:09:01 2020 +0100 1.2 +++ b/go-bin/receipt Tue Jun 30 15:23:03 2020 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="go-bin" 1.7 -VERSION="1.10.2" 1.8 +VERSION="1.14.4" 1.9 CATEGORY="development" 1.10 SHORT_DESC="The Go programming language, binary distribution" 1.11 MAINTAINER="al.bobylev@gmail.com" 1.12 @@ -13,29 +13,33 @@ 1.13 i?86) TARBALL="go$VERSION.linux-386.tar.gz";; 1.14 x86_64) TARBALL="go$VERSION.linux-amd64.tar.gz";; 1.15 esac 1.16 -WGET_URL="https://dl.google.com/go/$TARBALL" 1.17 +WGET_URL="https://golang.org/dl/$TARBALL" 1.18 1.19 COOKOPTS="!strip !zip !pngz" # stripping an *.a archives producing errors; 1.20 # *.zip archives have weird content and fail to recompress 1.21 1.22 -compile_rules() { 1.23 +compile_rules() 1.24 +{ 1.25 mkdir -p $install/usr/lib/go/ 1.26 cp -a $src/* $install/usr/lib/go/ 1.27 rm -rf $install/usr/lib/go/blog/ # blog?! 1.28 } 1.29 1.30 -genpkg_rules() { 1.31 - cp -a $install/* $fs 1.32 +genpkg_rules() 1.33 +{ 1.34 + cp -a $install/* $fs 1.35 PROVIDE="go" 1.36 TAGS="go" 1.37 } 1.38 1.39 -post_install_go_bin() { 1.40 +post_install_go_bin() 1.41 +{ 1.42 chroot "$1/" sed -i "/^PATH=/ s|\"$|:/usr/lib/go/bin\"|" /etc/profile 1.43 [ -n "$1"] || . /etc/profile 1.44 } 1.45 1.46 -post_remove_go_bin() { 1.47 +post_remove_go_bin() 1.48 +{ 1.49 chroot "$1/" sed -i "/^PATH=/ s|:/usr/lib/go/bin||" /etc/profile 1.50 [ -n "$1"] || . /etc/profile 1.51 }