2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: GO Programlama dili
|
2017-04-25 06:18:18 +02:00
|
|
|
|
# URL: http://golang.org/
|
2018-07-06 11:58:31 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2018-08-13 09:42:01 +02:00
|
|
|
|
# Grup: geliştirme
|
2017-04-25 06:18:18 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=go18
|
|
|
|
|
_isim=go
|
|
|
|
|
surum=1.8.1
|
|
|
|
|
devir=1
|
2018-08-13 09:42:01 +02:00
|
|
|
|
kaynak=(https://storage.googleapis.com/golang/${_isim}${surum}.src.tar.gz)
|
2017-04-25 06:18:18 +02:00
|
|
|
|
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-04-25 06:18:18 +02:00
|
|
|
|
export GOROOT_BOOTSTRAP=/usr/local/gccgo
|
|
|
|
|
export GOROOT_FINAL=/usr/lib/go
|
|
|
|
|
export GOOS=linux
|
|
|
|
|
export GOARCH=amd64
|
|
|
|
|
export CGO_ENABLED=1
|
|
|
|
|
|
2018-08-13 09:42:01 +02:00
|
|
|
|
#patch -p0 -i $SRC/$_isim-certpath.diff
|
2017-04-25 06:18:18 +02:00
|
|
|
|
|
|
|
|
|
cd $SRC/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
|
|
|
|
|
}
|