wok-next view go-bin/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | d5aab818505e |
children | 32129884a108 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="go-bin"
4 VERSION="1.10.2"
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://dl.google.com/go/$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 mkdir -p $install/usr/lib/go/
23 cp -a $src/* $install/usr/lib/go/
24 rm -rf $install/usr/lib/go/blog/ # blog?!
25 }
27 genpkg_rules() {
28 cp -a $install/* $fs
29 PROVIDE="go"
30 TAGS="go"
31 }
33 post_install_go_bin() {
34 chroot "$1/" sed -i "/^PATH=/ s|\"$|:/usr/lib/go/bin\"|" /etc/profile
35 [ -n "$1"] || . /etc/profile
36 }
38 post_remove_go_bin() {
39 chroot "$1/" sed -i "/^PATH=/ s|:/usr/lib/go/bin||" /etc/profile
40 [ -n "$1"] || . /etc/profile
41 }