|
|
@@ -4,12 +4,13 @@
|
|
|
pkgname=gogs
|
|
|
_pkgname=${pkgname}
|
|
|
pkgver=0.9.13
|
|
|
-pkgrel=1
|
|
|
+pkgrel=2
|
|
|
epoch=1
|
|
|
pkgdesc="Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language."
|
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
|
|
url="http://gogs.io/"
|
|
|
license=('MIT')
|
|
|
+provides=('gogs')
|
|
|
depends=('git>=1.7.1')
|
|
|
optdepends=('sqlite: SQLite support'
|
|
|
'mariadb: MariaDB support'
|
|
|
@@ -19,6 +20,10 @@ optdepends=('sqlite: SQLite support'
|
|
|
'openssh: GIT over SSH support'
|
|
|
'tidb-git: TiDB support')
|
|
|
makedepends=('go>=1.4' 'git>=1.7.1' 'patch')
|
|
|
+makedepends_i686=('glide-bin')
|
|
|
+makedepends_x86_64=('glide-bin')
|
|
|
+makedepends_armv6h=('glide-git')
|
|
|
+makedepends_armv7h=('glide-git')
|
|
|
conflicts=('gogs-bin' 'gogs-git' 'gogs-git-dev')
|
|
|
options=('!strip' '!emptydirs')
|
|
|
backup=('srv/gogs/conf/app.ini')
|
|
|
@@ -28,19 +33,15 @@ install=gogs.install
|
|
|
_gourl=github.com/gogits/$_pkgname
|
|
|
source=('gogs.service.patch'
|
|
|
'app.ini.patch'
|
|
|
- 'helper.sh'
|
|
|
"$_pkgname::git+https://${_gourl}.git#tag=v${pkgver}")
|
|
|
|
|
|
sha512sums=(834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
|
|
|
77589148ac4afe09bb1b3f70491fa3b1838299f02216b2a24598f0f468356b2cfbaae397cc693e93f406e1c537d5ae24bc51530d9826879d201b72b19bee376c
|
|
|
- e45775adafeecad5deaf24a98cd85b25a8383cb0e89905b2927c13fe7f0ec9918a42071ce43eabc429d8a826db93bb75ffb1927dce9c431ed88b0b5c619fd60d
|
|
|
'SKIP')
|
|
|
|
|
|
_goroot="/usr/lib/go"
|
|
|
|
|
|
prepare() {
|
|
|
- source $srcdir/helper.sh
|
|
|
-
|
|
|
export GOROOT=/usr/lib/go
|
|
|
|
|
|
msg2 "Prepare GO build enviroment"
|
|
|
@@ -67,13 +68,10 @@ prepare() {
|
|
|
|
|
|
mv "$srcdir/$_pkgname" $GOPATH/src/${_gourl}
|
|
|
|
|
|
- msg2 "Check and download dependencies from .gopmfile"
|
|
|
- get_gopm "$GOPATH/src/${_gourl}/.gopmfile" "$GOPATH/src"
|
|
|
-
|
|
|
-# msg2 "Download missing dependencies"
|
|
|
-# go_get github.com/go-xorm/tidb "$GOPATH/src/github.com/go-xorm/tidb"
|
|
|
-# go_get github.com/ngaut/log "$GOPATH/src/github.com/ngaut/log"
|
|
|
-# go_get github.com/pingcap/tidb "$GOPATH/src/github.com/pingcap/tidb"
|
|
|
+ # Glide
|
|
|
+ msg2 "Download dependencies via Glide"
|
|
|
+ cd $GOPATH/src/${_gourl}
|
|
|
+ glide install
|
|
|
|
|
|
# Execute patch
|
|
|
msg2 "Execute patches"
|