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

libopenraw, abiword: update deps; boost: pack unpacked libs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 21 05:42:25 2018 +0300 (2018-08-21)
parents fb26e10987dc
children d5aab818505e
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" # 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 DEPENDS=""
30 PROVIDE="go"
31 TAGS="go"
32 }
34 post_install_go_bin() {
35 chroot "$1/" sed -i "/^PATH=/ s|\"$|:/usr/lib/go/bin\"|" /etc/profile
36 [ -n "$1"] || . /etc/profile
37 }
39 post_remove_go_bin() {
40 chroot "$1/" sed -i "/^PATH=/ s|:/usr/lib/go/bin||" /etc/profile
41 [ -n "$1"] || . /etc/profile
42 }