[arch-commits] Commit in glider/repos/community-x86_64 (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Fri Jan 25 14:48:50 UTC 2019
Date: Friday, January 25, 2019 @ 14:48:49
Author: jelle
Revision: 427764
archrelease: copy trunk to community-x86_64
Added:
glider/repos/community-x86_64/PKGBUILD
(from rev 427763, glider/trunk/PKGBUILD)
Deleted:
glider/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 72 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 38 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-25 14:48:39 UTC (rev 427763)
+++ PKGBUILD 2019-01-25 14:48:49 UTC (rev 427764)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=glider
-pkgver=0.6.11
-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=('c6488dd309d3df5c578f8fe54c3d4e79e1ef437d5d49fd9149e97275e2199f7586092194e11399a70262c8108d24b0fbae475c3ec1c86c4ceb1657dfe051c8b6')
-
-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/shadowsocks/go-shadowsocks2/core github.com/sun8911879/shadowsocksR
-}
-
-build() {
- cd glider-$pkgver
- go build
-}
-
-package() {
- cd glider-$pkgver
- install -Dm755 glider-$pkgver "$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 427763, glider/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-01-25 14:48:49 UTC (rev 427764)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=glider
+pkgver=0.6.11
+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=('c6488dd309d3df5c578f8fe54c3d4e79e1ef437d5d49fd9149e97275e2199f7586092194e11399a70262c8108d24b0fbae475c3ec1c86c4ceb1657dfe051c8b6')
+
+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/shadowsocks/go-shadowsocks2/core github.com/sun8911879/shadowsocksR
+}
+
+build() {
+ cd glider-$pkgver
+ go build \
+ -gcflags "all=-trimpath=${PWD}" \
+ -asmflags "all=-trimpath=${PWD}" \
+ -ldflags "-extldflags ${LDFLAGS}"
+
+}
+
+package() {
+ cd glider-$pkgver
+ install -Dm755 glider-$pkgver "$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