[arch-commits] Commit in glider/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat May 9 14:31:02 UTC 2020


    Date: Saturday, May 9, 2020 @ 14:31:02
  Author: foxboron
Revision: 625966

upgpkg: glider 0.10.0-2

Removed go get usage and updated to current guidelines

Modified:
  glider/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-09 14:29:03 UTC (rev 625965)
+++ PKGBUILD	2020-05-09 14:31:02 UTC (rev 625966)
@@ -1,33 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
 
 pkgname=glider
 pkgver=0.10.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A forward proxy with multiple protocols support"
 arch=('x86_64')
 url="https://github.com/nadoo/glider"
 license=('GPL')
 depends=('glibc')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/nadoo/glider/archive/v$pkgver.tar.gz")
 sha512sums=('cd2f1dcec0f4b9d4836e766ecd406cd94cbe26ccaaf42834f5c322815967a1ad1e6fc85fe4e07fdcd7591ef513b1d672bd09ba69f3efe14f97417d577a772c05')
 
-prepare() {
-  mkdir .gopath
-  export GOPATH="$srcdir"/.gopath
-  mkdir -p "$GOPATH"/src/github.com/nadoo
-  ln -sf "$srcdir"/glider-$pkgver "$GOPATH"/src/github.com/nadoo/glider
+build() {
+  cd glider-$pkgver
+  export GOFLAGS="-buildmode=pie -trimpath"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  go build -o glider .
 
-  go get github.com/nadoo/conflag github.com/nadoo/go-shadowsocks2
 }
 
-build() {
+check(){
   cd glider-$pkgver
-  go build \
-    -gcflags "all=-trimpath=${PWD}" \
-    -asmflags "all=-trimpath=${PWD}" \
-    -ldflags "-extldflags ${LDFLAGS}"
-
+  go test -v ./...
 }
 
 package() {



More information about the arch-commits mailing list