milis/talimatname/genel/g/go/talimat

29 lines
664 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: GO Programlama dili
2017-04-24 02:48:47 +02:00
# URL: http://golang.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge@gmail.com
# Gerekler:
2016-04-02 16:28:20 +02:00
name=go
2017-04-25 06:18:18 +02:00
version=1.4.3
2016-04-02 16:28:20 +02:00
release=1
2017-04-25 06:18:18 +02:00
source=(https://storage.googleapis.com/golang/${name}${version}.src.tar.gz)
2016-04-02 16:28:20 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-04-25 06:18:18 +02:00
cd $SRC/go/src
export CGO_ENABLED=0
2017-04-24 02:45:52 +02:00
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
}