milis/talimatname/genel/go/talimat

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-01-31 01:37:09 +01:00
# Description: GO Programlama dili
2016-04-02 16:28:20 +02:00
# URL: http://golang.org/
2017-04-24 02:45:52 +02:00
# Packager: milisarge@gmail.com
# Depends on:
2016-04-02 16:28:20 +02:00
name=go
2017-04-24 02:45:52 +02:00
version=1.8.1
2016-04-02 16:28:20 +02:00
release=1
2017-04-24 02:45:52 +02:00
source=(https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz
https://storage.googleapis.com/golang/${name}${version}.src.tar.gz)
2016-04-02 16:28:20 +02:00
2016-05-09 02:30:41 +02:00
build() {
2017-04-24 02:45:52 +02:00
install -d $SRC/go1.4
bsdtar -xf $PKGMK_SOURCE_DIR/${name}1.4.3.linux-amd64.tar.gz -C $SRC/go1.4 --strip-components 1
bsdtar -xf $PKGMK_SOURCE_DIR/${name}${version}.src.tar.gz -C $SRC
export GOROOT_BOOTSTRAP=${SRC}/go1.4
export GOROOT_FINAL=/usr/lib/go
export GOOS=linux
export GOARCH=amd64
patch -p0 -i $SRC/$name-certpath.diff
cd go/src
bash make.bash --no-clean
install -d $PKG/usr/lib
cp -r $SRC/go $PKG/usr/lib/
install -d $PKG/usr/bin
ln -s /usr/lib/go/bin/go $PKG/usr/bin/
ln -s /usr/lib/go/bin/gofmt $PKG/usr/bin/
find $PKG \( -name "*.a" -o -name "*.go" \) -exec chmod 644 '{}' \;
find $PKG \( -name "README*" -o -name "AUTHORS" -o -name "TODO" \) -delete
rm $PKG/usr/lib/go/src/*.bat
2016-04-02 16:28:20 +02:00
}