milis/talimatname/genel/g/go/talimat

29 lines
658 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: GO Programlama dili
# URL: http://golang.org/
# Paketçi: milisarge@gmail.com
# Gerekler:
isim=go
surum=1.4.3
devir=1
kaynak=(https://storage.googleapis.com/golang/${isim}${surum}.src.tar.gz)
derle() {
cd $SRC/go/src
export CGO_ENABLED=0
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
}