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

Felix Yan felixonmars at gemini.archlinux.org
Wed May 4 07:47:22 UTC 2022


    Date: Wednesday, May 4, 2022 @ 07:47:22
  Author: felixonmars
Revision: 1192587

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-04 07:47:09 UTC (rev 1192586)
+++ PKGBUILD	2022-05-04 07:47:22 UTC (rev 1192587)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: pandada8 <pandada8 at gmail.com>
-
-pkgname=v2ray
-pkgver=4.44.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=("https://github.com/v2fly/v2ray-core/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('72498120202b3f0e02996d5937f8bc84b2af4aeb4e83f64cb0d3059c503a4f67056a32e621a282c0f9c2a9330680604f8980d718d129fdb300b63c5475819e06')
-
-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 ./...
-}
-
-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 1192586, v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-04 07:47:22 UTC (rev 1192587)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: pandada8 <pandada8 at gmail.com>
+
+pkgname=v2ray
+pkgver=4.45.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=("https://github.com/v2fly/v2ray-core/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('d8f374bfa723ce4ed8b8d633123cc7e8fd748b33218e55cc277cac1e69626ae44cb3096e62f8e50062faab5757d1e7c0ff36414e5920ee6d496f02ca8a68a7f0')
+
+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 ./...
+}
+
+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