diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = gogs pkgdesc = Self Hosted Git Service written in Go pkgver = 0.12.1 - pkgrel = 1 + pkgrel = 2 epoch = 1 url = https://gogs.io arch = i686 @@ -22,7 +22,6 @@ pkgbase = gogs conflicts = gogs-bin conflicts = gogs-git conflicts = gogs-dev-git - options = !strip backup = etc/gogs/app.ini source = gogs-0.12.1::https://github.com/gogs/gogs/archive/v0.12.1.tar.gz source = 0001-Adjust-config-for-Arch-Linux-package.patch @@ -11,7 +11,7 @@ _scriptsdir=scripts pkgname=$_pkgname pkgver=0.12.1 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc='Self Hosted Git Service written in Go' arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') @@ -26,7 +26,6 @@ optdepends=('sqlite: SQLite support' 'openssh: GIT over SSH support') makedepends=('go>=1.3') conflicts=("$_pkgname-bin" "$_pkgname-git" "$_pkgname-dev-git") -options=('!strip') backup=("etc/$_pkgname/app.ini") source=("$_pkgname-$pkgver::https://github.com/$_orga/$_pkgname/archive/v${pkgver}.tar.gz" '0001-Adjust-config-for-Arch-Linux-package.patch' @@ -69,6 +68,12 @@ prepare() { build() { export GOROOT="$srcdir/build/go" export GOPATH="$srcdir/build" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + cd "$GOPATH/src/${_gourl}" go fix |