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

zlib: separate zlib-static from zlib-dev and use it where it required: in optipng (up 0.7.7) and pngquant
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jan 20 14:42:46 2019 +0200 (2019-01-20)
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 }