wok-next view go-bin/receipt @ rev 21726

updated firefox-official (77.0 -> 81.0)
author Hans-G?nter Theisgen
date Sun Sep 27 14:34:31 2020 +0100 (2020-09-27)
parents 053a334547a1
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="go-bin"
4 VERSION="1.14.4"
5 CATEGORY="development"
6 SHORT_DESC="The Go programming language, binary distribution"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://golang.org/"
10 REPOLOGY="go"
12 case $ARCH in
13 i?86) TARBALL="go$VERSION.linux-386.tar.gz";;
14 x86_64) TARBALL="go$VERSION.linux-amd64.tar.gz";;
15 esac
16 WGET_URL="https://golang.org/dl/$TARBALL"
18 COOKOPTS="!strip !zip !pngz" # stripping an *.a archives producing errors;
19 # *.zip archives have weird content and fail to recompress
21 compile_rules()
22 {
23 mkdir -p $install/usr/lib/go/
24 cp -a $src/* $install/usr/lib/go/
25 rm -rf $install/usr/lib/go/blog/ # blog?!
26 }
28 genpkg_rules()
29 {
30 cp -a $install/* $fs
31 PROVIDE="go"
32 TAGS="go"
33 }
35 post_install_go_bin()
36 {
37 chroot "$1/" sed -i "/^PATH=/ s|\"$|:/usr/lib/go/bin\"|" /etc/profile
38 [ -n "$1"] || . /etc/profile
39 }
41 post_remove_go_bin()
42 {
43 chroot "$1/" sed -i "/^PATH=/ s|:/usr/lib/go/bin||" /etc/profile
44 [ -n "$1"] || . /etc/profile
45 }