wok-next diff go-bin/receipt @ rev 20714
netkit-rsh: typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 27 12:56:13 2018 +0300 (2018-05-27) |
parents | |
children | fb26e10987dc |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/go-bin/receipt Sun May 27 12:56:13 2018 +0300 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="go-bin" 1.7 +VERSION="1.9.2" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The Go programming language, binary distribution" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="BSD" 1.12 +WEB_SITE="http://golang.org/" 1.13 + 1.14 +TARBALL="go$VERSION.linux-386.tar.gz" 1.15 +WGET_URL="https://redirector.gvt1.com/edgedl/go/$TARBALL" 1.16 + 1.17 +COOKOPTS="!strip" # stripping an *.a archives producing errors 1.18 + 1.19 +compile_rules() { 1.20 + mkdir -p $install/usr/lib/go/ 1.21 + cp -a $src/* $install/usr/lib/go/ 1.22 + rm -rf $install/usr/lib/go/blog/ # blog?! 1.23 +} 1.24 + 1.25 +genpkg_rules() { 1.26 + cp -a $install/* $fs 1.27 + DEPENDS="" 1.28 + PROVIDE="go" 1.29 + TAGS="go" 1.30 +} 1.31 + 1.32 +post_install_go_bin() { 1.33 + chroot "$1/" sed -i "/^PATH=/ s|\"$|:/usr/lib/go/bin\"|" /etc/profile 1.34 + [ -n "$1"] || . /etc/profile 1.35 +} 1.36 + 1.37 +post_remove_go_bin() { 1.38 + chroot "$1/" sed -i "/^PATH=/ s|:/usr/lib/go/bin||" /etc/profile 1.39 + [ -n "$1"] || . /etc/profile 1.40 +}