[arch-commits] Commit in v2ray/repos/community-x86_64 (4 files)

Felix Yan felixonmars at archlinux.org
Sun Mar 22 12:52:35 UTC 2020


    Date: Sunday, March 22, 2020 @ 12:52:34
  Author: felixonmars
Revision: 603498

archrelease: copy trunk to community-x86_64

Added:
  v2ray/repos/community-x86_64/PKGBUILD
    (from rev 603497, v2ray/trunk/PKGBUILD)
  v2ray/repos/community-x86_64/v2ray.service
    (from rev 603497, v2ray/trunk/v2ray.service)
Deleted:
  v2ray/repos/community-x86_64/PKGBUILD
  v2ray/repos/community-x86_64/v2ray.service

---------------+
 PKGBUILD      |  134 ++++++++++++++++++++++++++++----------------------------
 v2ray.service |   26 +++++-----
 2 files changed, 80 insertions(+), 80 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-22 12:52:16 UTC (rev 603497)
+++ PKGBUILD	2020-03-22 12:52:34 UTC (rev 603498)
@@ -1,67 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: pandada8 <pandada8 at gmail.com>
-
-pkgname=v2ray
-pkgver=4.22.1
-pkgrel=2
-pkgdesc="A platform for building proxies to bypass network restrictions"
-arch=('x86_64')
-url="https://github.com/v2ray/v2ray-core"
-license=('MIT')
-depends=('glibc' 'v2ray-domain-list-community' 'v2ray-geoip')
-makedepends=('go-pie' 'golang-golang-x-crypto' 'golang-golang-x-net' 'golang-golang-x-sys' 'git')
-backup=(etc/v2ray/config.json)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/v2ray/v2ray-core/archive/v$pkgver.tar.gz"
-        'v2ray.service')
-sha512sums=('8f0ace2b5548005bf8bd4a4c6a7959c39a7ba0fa2609d7526404d786098eaba760731c614a40b1a850a2b250690bc777f057e0dce6f42731aa9bf3c3d22c47c1'
-            '79192646438bcbd13a5a88d0093b1b6d5df603a9c2241a6260babf16f9e98d75f9e04fb3a1d926eb809a81fa935d3ff47d39cc703c609dfc906146ca58272bc7')
-
-prepare() {
-  # Try to unpin go mods
-  rm v2ray-core-$pkgver/go.{mod,sum}
-
-  export GOPATH="$srcdir/build:/usr/share/gocode"
-  mkdir -p "$srcdir"/build/src/v2ray.com
-
-  # mv *.com *.io *.org *.net "$srcdir"/build/src/
-  mv v2ray-core-$pkgver "$srcdir"/build/src/v2ray.com/core
-
-  # Future makedepends
-  go get github.com/golang/protobuf/proto go.starlark.net/starlark go.starlark.net/syntax \
-         google.golang.org/grpc github.com/gorilla/websocket github.com/refraction-networking/utls
-
-  # Future checkdepends
-  go get github.com/golang/mock/gomock github.com/google/go-cmp/cmp \
-         golang.org/x/sync/errgroup golang.org/x/xerrors github.com/miekg/dns h12.io/socks
-}
-
-build() {
-  go build -trimpath \
-    -ldflags "-extldflags ${LDFLAGS}" \
-    -o v2ray v2ray.com/core/main
-
-  go build -trimpath \
-    -ldflags "-extldflags ${LDFLAGS}" \
-    -o v2ctl v2ray.com/core/infra/control/main
-}
-
-check() {
-  cd "$srcdir"/build/src/v2ray.com/core
-  go test -p 1 -tags json -v -timeout 30m v2ray.com/core/...
-}
-
-package() {
-  cd "$srcdir"/build/src/v2ray.com/core
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/v2ray/LICENSE
-  install -Dm644 release/config/systemd/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/*.json -t "$pkgdir"/etc/v2ray/
-  install -Dm755 "$srcdir"/v2ray -t "$pkgdir"/usr/lib/v2ray/
-  install -Dm755 "$srcdir"/v2ctl -t "$pkgdir"/usr/lib/v2ray/
-  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
-}

Copied: v2ray/repos/community-x86_64/PKGBUILD (from rev 603497, v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-22 12:52:34 UTC (rev 603498)
@@ -0,0 +1,67 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: pandada8 <pandada8 at gmail.com>
+
+pkgname=v2ray
+pkgver=4.23.0
+pkgrel=1
+pkgdesc="A platform for building proxies to bypass network restrictions"
+arch=('x86_64')
+url="https://github.com/v2ray/v2ray-core"
+license=('MIT')
+depends=('glibc' 'v2ray-domain-list-community' 'v2ray-geoip')
+makedepends=('go-pie' 'golang-golang-x-crypto' 'golang-golang-x-net' 'golang-golang-x-sys' 'git')
+backup=(etc/v2ray/config.json)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/v2ray/v2ray-core/archive/v$pkgver.tar.gz"
+        'v2ray.service')
+sha512sums=('d7dbab9e4e691224d10a7b7352da12ca18d2d638183869cd5fafd42bc363a04335a8ff70c0112425e269afe01254ffbafa530255f24bad1af75b9de6fbe98af2'
+            '79192646438bcbd13a5a88d0093b1b6d5df603a9c2241a6260babf16f9e98d75f9e04fb3a1d926eb809a81fa935d3ff47d39cc703c609dfc906146ca58272bc7')
+
+prepare() {
+  # Try to unpin go mods
+  rm v2ray-core-$pkgver/go.{mod,sum}
+
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/v2ray.com
+
+  # mv *.com *.io *.org *.net "$srcdir"/build/src/
+  mv v2ray-core-$pkgver "$srcdir"/build/src/v2ray.com/core
+
+  # Future makedepends
+  go get github.com/golang/protobuf/proto go.starlark.net/starlark go.starlark.net/syntax \
+         google.golang.org/grpc github.com/gorilla/websocket github.com/refraction-networking/utls
+
+  # Future checkdepends
+  go get github.com/golang/mock/gomock github.com/google/go-cmp/cmp \
+         golang.org/x/sync/errgroup golang.org/x/xerrors github.com/miekg/dns h12.io/socks
+}
+
+build() {
+  go build -trimpath \
+    -ldflags "-extldflags ${LDFLAGS}" \
+    -o v2ray v2ray.com/core/main
+
+  go build -trimpath \
+    -ldflags "-extldflags ${LDFLAGS}" \
+    -o v2ctl v2ray.com/core/infra/control/main
+}
+
+check() {
+  cd "$srcdir"/build/src/v2ray.com/core
+  go test -p 1 -tags json -v -timeout 30m v2ray.com/core/...
+}
+
+package() {
+  cd "$srcdir"/build/src/v2ray.com/core
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/v2ray/LICENSE
+  install -Dm644 release/config/systemd/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/*.json -t "$pkgdir"/etc/v2ray/
+  install -Dm755 "$srcdir"/v2ray -t "$pkgdir"/usr/lib/v2ray/
+  install -Dm755 "$srcdir"/v2ctl -t "$pkgdir"/usr/lib/v2ray/
+  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
+}

Deleted: v2ray.service
===================================================================
--- v2ray.service	2020-03-22 12:52:16 UTC (rev 603497)
+++ v2ray.service	2020-03-22 12:52:34 UTC (rev 603498)
@@ -1,13 +0,0 @@
-[Unit]
-Description=V2Ray Service
-After=network.target
-Wants=network.target
-
-[Service]
-Type=simple
-PIDFile=/var/run/v2ray-%i.pid
-ExecStart=/usr/bin/v2ray -config /etc/v2ray/%i.json
-Restart=on-failure
-
-[Install]
-WantedBy=multi-user.target

Copied: v2ray/repos/community-x86_64/v2ray.service (from rev 603497, v2ray/trunk/v2ray.service)
===================================================================
--- v2ray.service	                        (rev 0)
+++ v2ray.service	2020-03-22 12:52:34 UTC (rev 603498)
@@ -0,0 +1,13 @@
+[Unit]
+Description=V2Ray Service
+After=network.target
+Wants=network.target
+
+[Service]
+Type=simple
+PIDFile=/var/run/v2ray-%i.pid
+ExecStart=/usr/bin/v2ray -config /etc/v2ray/%i.json
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list