go-olayi
This commit is contained in:
parent
df0715f21a
commit
7c319cd2c6
|
@ -0,0 +1,2 @@
|
|||
export PATH=/usr/local/gccgo/bin:$PATH
|
||||
echo /usr/local/gccgo/lib64 > /etc/ld.so.conf.d/gccgo.conf
|
|
@ -0,0 +1,34 @@
|
|||
# Description: go (1.4) GNU derleyici kütüphane ve ikili dosyaları-go bootstrap
|
||||
# URL: http://gcc.gnu.org
|
||||
# Packagers: milisarge@gmail.com
|
||||
# Depends on:
|
||||
|
||||
name=gcc-go
|
||||
version=5.3.0
|
||||
release=1
|
||||
|
||||
source=(http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2)
|
||||
|
||||
build() {
|
||||
cd gcc-$version
|
||||
mkdir -v ../gcc-build
|
||||
cd ../gcc-build
|
||||
|
||||
SED=sed \
|
||||
../gcc-$version/configure \
|
||||
--enable-threads=posix \
|
||||
--enable-shared \
|
||||
--enable-__cxa_atexit \
|
||||
--enable-languages=c,c++,go \
|
||||
--enable-secureplt \
|
||||
--enable-checking=yes \
|
||||
--with-long-double-128 \
|
||||
--enable-decimal-float \
|
||||
--disable-bootstrap \
|
||||
--disable-alsa \
|
||||
--disable-multilib \
|
||||
--prefix=/usr/local/gccgo
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
}
|
|
@ -4,26 +4,15 @@
|
|||
# Depends on:
|
||||
|
||||
name=go
|
||||
version=1.8.1
|
||||
version=1.4.3
|
||||
release=1
|
||||
source=(https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz
|
||||
https://storage.googleapis.com/golang/${name}${version}.src.tar.gz)
|
||||
source=(https://storage.googleapis.com/golang/${name}${version}.src.tar.gz)
|
||||
|
||||
|
||||
build() {
|
||||
|
||||
install -d $SRC/go1.4
|
||||
bsdtar -xf $DERLEME_KAYNAKDIZIN/${name}1.4.3.linux-amd64.tar.gz -C $SRC/go1.4 --strip-components 1
|
||||
bsdtar -xf $DERLEME_KAYNAKDIZIN/${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
|
||||
cd $SRC/go/src
|
||||
export CGO_ENABLED=0
|
||||
bash make.bash --no-clean
|
||||
|
||||
install -d $PKG/usr/lib
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
# Description: GO Programlama dili
|
||||
# URL: http://golang.org/
|
||||
# Packager: milisarge@gmail.com
|
||||
# Depends on: gcc-go
|
||||
|
||||
name=go18
|
||||
_name=go
|
||||
version=1.8.1
|
||||
release=1
|
||||
source=(https://storage.googleapis.com/golang/${_name}${version}.src.tar.gz)
|
||||
|
||||
|
||||
build() {
|
||||
export GOROOT_BOOTSTRAP=/usr/local/gccgo
|
||||
export GOROOT_FINAL=/usr/lib/go
|
||||
export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
export CGO_ENABLED=1
|
||||
|
||||
#patch -p0 -i $SRC/$_name-certpath.diff
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue