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

Add libosinfo, osinfo-db-tools, osinfo-db
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 18 15:25:03 2018 +0300 (2018-05-18)
parents
children fb26e10987dc
line source
1 # SliTaz package receipt v2.
3 PACKAGE="go-bin"
4 VERSION="1.9.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="http://golang.org/"
11 TARBALL="go$VERSION.linux-386.tar.gz"
12 WGET_URL="https://redirector.gvt1.com/edgedl/go/$TARBALL"
14 COOKOPTS="!strip" # stripping an *.a archives producing errors
16 compile_rules() {
17 mkdir -p $install/usr/lib/go/
18 cp -a $src/* $install/usr/lib/go/
19 rm -rf $install/usr/lib/go/blog/ # blog?!
20 }
22 genpkg_rules() {
23 cp -a $install/* $fs
24 DEPENDS=""
25 PROVIDE="go"
26 TAGS="go"
27 }
29 post_install_go_bin() {
30 chroot "$1/" sed -i "/^PATH=/ s|\"$|:/usr/lib/go/bin\"|" /etc/profile
31 [ -n "$1"] || . /etc/profile
32 }
34 post_remove_go_bin() {
35 chroot "$1/" sed -i "/^PATH=/ s|:/usr/lib/go/bin||" /etc/profile
36 [ -n "$1"] || . /etc/profile
37 }