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

Felix Yan felixonmars at archlinux.org
Sun Jul 5 21:55:32 UTC 2020


    Date: Sunday, July 5, 2020 @ 21:55:31
  Author: felixonmars
Revision: 657916

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 21:55:20 UTC (rev 657915)
+++ PKGBUILD	2020-07-05 21:55:31 UTC (rev 657916)
@@ -1,48 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: pandada8 <pandada8 at gmail.com>
-
-pkgname=v2ray
-pkgver=4.25.1
-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' '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=('5904ad46dbef57ae65571be7a2b1e4bf01f6d70a6ea93d733bbcf8280c033db1928278d4932263eaad5c4a30a9f42670691abebcae1e73467546e08494b181b6'
-            '507cb9033ced1ae7886ea186461edb906e2ec7125aa9465c02f7c49e631604b718952d0ddfc1f90636c87a3ab6accd080f65f54c8e969e889eb4f79c23cdfcd9')
-
-build() {
-  cd "v2ray-core-$pkgver"
-  export GOFLAGS="-buildmode=pie -trimpath"
-  export CGO_LDFLAGS="${LDFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  go build -o v2ray ./main
-  go build -o v2ctl ./infra/control/main
-}
-
-check() {
-  cd "v2ray-core-$pkgver"
-  go test -p 1 -tags json -v -timeout 30m v2ray.com/core/...
-}
-
-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
-  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 v2ray -t "$pkgdir"/usr/lib/v2ray/
-  install -Dm755 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 657915, v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-05 21:55:31 UTC (rev 657916)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: pandada8 <pandada8 at gmail.com>
+
+pkgname=v2ray
+pkgver=4.26.0
+pkgrel=1
+pkgdesc="A platform for building proxies to bypass network restrictions"
+arch=('x86_64')
+url="https://github.com/v2fly/v2ray-core"
+license=('MIT')
+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=('a97b5a89c6e8b10ae137cd3fb40dbda6f54a915e32ae449b77333537c4307a4de45739187fa8b4321001708d0619b334d7e5a9d88c2a29211eaee71bb8ef2df0'
+            '507cb9033ced1ae7886ea186461edb906e2ec7125aa9465c02f7c49e631604b718952d0ddfc1f90636c87a3ab6accd080f65f54c8e969e889eb4f79c23cdfcd9')
+
+build() {
+  cd "v2ray-core-$pkgver"
+  export GOFLAGS="-buildmode=pie -trimpath"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  go build -o v2ray ./main
+  go build -o v2ctl ./infra/control/main
+}
+
+check() {
+  cd "v2ray-core-$pkgver"
+  go test -p 1 -tags json -v -timeout 30m v2ray.com/core/...
+}
+
+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
+  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 v2ray -t "$pkgdir"/usr/lib/v2ray/
+  install -Dm755 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-07-05 21:55:20 UTC (rev 657915)
+++ v2ray.service	2020-07-05 21:55:31 UTC (rev 657916)
@@ -1,13 +0,0 @@
-[Unit]
-Description=V2Ray Service
-After=network.target
-Wants=network.target
-
-[Service]
-Type=exec
-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 657915, v2ray/trunk/v2ray.service)
===================================================================
--- v2ray.service	                        (rev 0)
+++ v2ray.service	2020-07-05 21:55:31 UTC (rev 657916)
@@ -0,0 +1,13 @@
+[Unit]
+Description=V2Ray Service
+After=network.target
+Wants=network.target
+
+[Service]
+Type=exec
+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