[arch-commits] Commit in glider/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


    Date: Saturday, May 9, 2020 @ 14:31:09
  Author: foxboron
Revision: 625967

archrelease: copy trunk to community-x86_64

Added:
  glider/repos/community-x86_64/PKGBUILD
    (from rev 625966, glider/trunk/PKGBUILD)
Deleted:
  glider/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 36 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-09 14:31:02 UTC (rev 625966)
+++ PKGBUILD	2020-05-09 14:31:09 UTC (rev 625967)
@@ -1,38 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=glider
-pkgver=0.10.0
-pkgrel=1
-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')
-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
-
-  go get github.com/nadoo/conflag github.com/nadoo/go-shadowsocks2
-}
-
-build() {
-  cd glider-$pkgver
-  go build \
-    -gcflags "all=-trimpath=${PWD}" \
-    -asmflags "all=-trimpath=${PWD}" \
-    -ldflags "-extldflags ${LDFLAGS}"
-
-}
-
-package() {
-  cd glider-$pkgver
-  install -Dm755 glider "$pkgdir"/usr/bin/glider
-  install -Dm644 config/glider.conf.example "$pkgdir"/etc/glider/glider.conf.example
-  install -Dm644 systemd/glider at .service "$pkgdir"/usr/lib/systemd/system/glider at .service
-}

Copied: glider/repos/community-x86_64/PKGBUILD (from rev 625966, glider/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-09 14:31:09 UTC (rev 625967)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=glider
+pkgver=0.10.0
+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' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nadoo/glider/archive/v$pkgver.tar.gz")
+sha512sums=('cd2f1dcec0f4b9d4836e766ecd406cd94cbe26ccaaf42834f5c322815967a1ad1e6fc85fe4e07fdcd7591ef513b1d672bd09ba69f3efe14f97417d577a772c05')
+
+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 .
+
+}
+
+check(){
+  cd glider-$pkgver
+  go test -v ./...
+}
+
+package() {
+  cd glider-$pkgver
+  install -Dm755 glider "$pkgdir"/usr/bin/glider
+  install -Dm644 config/glider.conf.example "$pkgdir"/etc/glider/glider.conf.example
+  install -Dm644 systemd/glider at .service "$pkgdir"/usr/lib/systemd/system/glider at .service
+}


More information about the arch-commits mailing list