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

Felix Yan felixonmars at archlinux.org
Sat Oct 24 08:39:32 UTC 2020


    Date: Saturday, October 24, 2020 @ 08:39:32
  Author: felixonmars
Revision: 731019

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   90 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 45 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-24 08:39:20 UTC (rev 731018)
+++ PKGBUILD	2020-10-24 08:39:32 UTC (rev 731019)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: pandada8 <pandada8 at gmail.com>
-
-pkgname=v2ray
-pkgver=4.31.2
-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")
-sha512sums=('c00ce66e642b8f44b599f30ed0c6b98e41e9e5ed6fa0f6a17c44bf5eab33aed64a12a37916143a96654ecbe83c7375224d27d2ba101c1706adba334659837f16')
-
-prepare() {
-  cd v2ray-core-$pkgver
-  sed -i 's|/usr/local/bin|/usr/bin|;s|/usr/local/etc|/etc|' release/config/systemd/system/*.service
-}
-
-build() {
-  cd v2ray-core-$pkgver
-  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external"
-  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/system/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service
-  install -Dm644 release/config/systemd/system/v2ray at .service "$pkgdir"/usr/lib/systemd/system/v2ray at .service
-  install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/
-  install -Dm755 v2ray -t "$pkgdir"/usr/bin/
-  install -Dm755 v2ctl -t "$pkgdir"/usr/bin/
-}

Copied: v2ray/repos/community-x86_64/PKGBUILD (from rev 731018, v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-24 08:39:32 UTC (rev 731019)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: pandada8 <pandada8 at gmail.com>
+
+pkgname=v2ray
+pkgver=4.31.3
+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")
+sha512sums=('ddb7d362d1290dacc251c55f7f6787056888beb61b121f9fb2335d798874d002cca223c514bdb40184d8288ba511aa7ad9f795e52e7fdddf4a7c46aac25d2857')
+
+prepare() {
+  cd v2ray-core-$pkgver
+  sed -i 's|/usr/local/bin|/usr/bin|;s|/usr/local/etc|/etc|' release/config/systemd/system/*.service
+}
+
+build() {
+  cd v2ray-core-$pkgver
+  export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external"
+  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/system/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service
+  install -Dm644 release/config/systemd/system/v2ray at .service "$pkgdir"/usr/lib/systemd/system/v2ray at .service
+  install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/
+  install -Dm755 v2ray -t "$pkgdir"/usr/bin/
+  install -Dm755 v2ctl -t "$pkgdir"/usr/bin/
+}



More information about the arch-commits mailing list