talimat 851 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Tanım: GO Programlama dili
  2. # URL: http://golang.org/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: geliştirme
  6. isim=go18
  7. _isim=go
  8. surum=1.8.1
  9. devir=1
  10. kaynak=(https://storage.googleapis.com/golang/${_isim}${surum}.src.tar.gz)
  11. derle() {
  12. export GOROOT_BOOTSTRAP=/usr/local/gccgo
  13. export GOROOT_FINAL=/usr/lib/go
  14. export GOOS=linux
  15. export GOARCH=amd64
  16. export CGO_ENABLED=1
  17. #patch -p0 -i $SRC/$_isim-certpath.diff
  18. cd $SRC/go/src
  19. bash make.bash --no-clean
  20. install -d $PKG/usr/lib
  21. cp -r $SRC/go $PKG/usr/lib/
  22. install -d $PKG/usr/bin
  23. ln -s /usr/lib/go/bin/go $PKG/usr/bin/
  24. ln -s /usr/lib/go/bin/gofmt $PKG/usr/bin/
  25. find $PKG \( -name "*.a" -o -name "*.go" \) -exec chmod 644 '{}' \;
  26. find $PKG \( -name "README*" -o -name "AUTHORS" -o -name "TODO" \) -delete
  27. rm $PKG/usr/lib/go/src/*.bat
  28. }