Fix exporting GOROOT in gogs/gitea

This commit is contained in:
Martchus 2017-06-17 13:01:34 +02:00
parent d29ef315f1
commit 789d8eb650
2 changed files with 9 additions and 5 deletions

View File

@ -55,8 +55,8 @@ prepare() {
export GOROOT="$srcdir/build/go"
export GOPATH="$srcdir/build"
mkdir -p "$GOPATH/src/$_gourl"
mv "$srcdir/$_pkgname-${pkgver}" "$GOPATH/src/${_gourl%/$_pkgname}"
mkdir -p "$GOPATH/src/${_gourl%/$_pkgname}"
mv "$srcdir/$_pkgname-${pkgver}" "$GOPATH/src/${_gourl}"
msg2 'Patch config and service file'
cd "$GOPATH/src/${_gourl}"
@ -65,6 +65,8 @@ prepare() {
}
build() {
export GOROOT="$srcdir/build/go"
export GOPATH="$srcdir/build"
cd "$GOPATH/src/${_gourl}"
go fix

View File

@ -12,7 +12,7 @@ pkgrel=1
epoch=1
pkgdesc='Self Hosted Git Service written in Go'
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='http://gogs.io/'
url="https://$_pkgname.io"
license=('MIT')
depends=('git>=1.7.1')
optdepends=('sqlite: SQLite support'
@ -55,8 +55,8 @@ prepare() {
export GOROOT="$srcdir/build/go"
export GOPATH="$srcdir/build"
mkdir -p "$GOPATH/src/$_gourl"
mv "$srcdir/$_pkgname-${pkgver}" "$GOPATH/src/${_gourl%/$_pkgname}"
mkdir -p "$GOPATH/src/${_gourl%/$_pkgname}"
mv "$srcdir/$_pkgname-${pkgver}" "$GOPATH/src/${_gourl}"
msg2 'Patch config and service file'
cd "$GOPATH/src/${_gourl}"
@ -65,6 +65,8 @@ prepare() {
}
build() {
export GOROOT="$srcdir/build/go"
export GOPATH="$srcdir/build"
cd "$GOPATH/src/${_gourl}"
go fix