[arch-commits] Commit in v2ray/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Wed Sep 2 19:52:58 UTC 2020
Date: Wednesday, September 2, 2020 @ 19:52:57
Author: foxboron
Revision: 696930
upgpkg: v2ray 4.27.5-1
Modified:
v2ray/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-02 19:52:21 UTC (rev 696929)
+++ PKGBUILD 2020-09-02 19:52:57 UTC (rev 696930)
@@ -2,7 +2,7 @@
# Contributor: pandada8 <pandada8 at gmail.com>
pkgname=v2ray
-pkgver=4.27.0
+pkgver=4.27.5
pkgrel=1
pkgdesc="A platform for building proxies to bypass network restrictions"
arch=('x86_64')
@@ -11,14 +11,12 @@
depends=('glibc' 'v2ray-domain-list-community' 'v2ray-geoip')
makedepends=('go' 'git')
backup=(etc/v2ray/config.json)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/v2fly/v2ray-core/archive/v$pkgver.tar.gz"
- 'v2ray.service')
-sha512sums=('9fa588e324d11afc1e574da1e43628fb39b8823b8c4ceae79ec13d6747b9f647b704bf5b85fac0d0992ff1552eac88990bff7f0702f778cf52dde6253d5438ac'
- '507cb9033ced1ae7886ea186461edb906e2ec7125aa9465c02f7c49e631604b718952d0ddfc1f90636c87a3ab6accd080f65f54c8e969e889eb4f79c23cdfcd9')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/v2fly/v2ray-core/archive/v$pkgver.tar.gz")
+sha512sums=('f0c93458d091980d8daef95a3809c3fa05fcc23e713f1190a90d5708852d3c0998a6c20f4aa6fe56a0bdf6fcde61a595869679e6803be030d8a750a46d7508f2')
build() {
cd "v2ray-core-$pkgver"
- export GOFLAGS="-buildmode=pie -trimpath"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -34,9 +32,12 @@
package() {
cd v2ray-core-$pkgver
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/v2ray/LICENSE
- install -Dm644 release/config/systemd/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service
+ install -Dm644 release/config/systemd/system/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service
sed -i -e 's|/usr/bin/v2ray/v2ray|/usr/lib/v2ray/v2ray|' \
"$pkgdir"/usr/lib/systemd/system/v2ray.service
+ install -Dm644 release/config/systemd/system/v2ray at .service "$pkgdir"/usr/lib/systemd/system/v2ray at .service
+ sed -i -e 's|/usr/bin/v2ray/v2ray|/usr/lib/v2ray/v2ray|' \
+ "$pkgdir"/usr/lib/systemd/system/v2ray at .service
install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/
install -Dm755 v2ray -t "$pkgdir"/usr/lib/v2ray/
install -Dm755 v2ctl -t "$pkgdir"/usr/lib/v2ray/
@@ -43,6 +44,4 @@
install -dm755 "$pkgdir"/usr/bin
ln -s ../lib/v2ray/v2ray "$pkgdir"/usr/bin/v2ray
ln -s ../lib/v2ray/v2ctl "$pkgdir"/usr/bin/v2ctl
-
- install -Dm644 "$srcdir"/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray at .service
}
More information about the arch-commits
mailing list