wok-next view go-bin/receipt @ rev 20777
gnome-calculator: up (3.28.1); go-bin and go: up (1.10.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 22:02:40 2018 +0300 (2018-06-06) |
parents | 8164c0612ccf |
children | d958fec46c9f |
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/"
11 case $ARCH in
12 i?86) TARBALL="go$VERSION.linux-386.tar.gz";;
13 x86_64) TARBALL="go$VERSION.linux-amd64.tar.gz";;
14 esac
15 WGET_URL="https://dl.google.com/go/$TARBALL"
17 COOKOPTS="!strip !zip" # stripping an *.a archives producing errors;
18 # *.zip archives have weird content and fail to recompress
20 compile_rules() {
21 mkdir -p $install/usr/lib/go/
22 cp -a $src/* $install/usr/lib/go/
23 rm -rf $install/usr/lib/go/blog/ # blog?!
24 }
26 genpkg_rules() {
27 cp -a $install/* $fs
28 DEPENDS=""
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 }