Date: Saturday, February 11, 2023 @ 18:36:55
  Author: felixonmars
Revision: 1399841

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   87 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 44 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-11 18:36:37 UTC (rev 1399840)
+++ PKGBUILD    2023-02-11 18:36:55 UTC (rev 1399841)
@@ -1,43 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: pandada8 <[email protected]>
-
-pkgname=v2ray
-pkgver=5.2.1
-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=('3c2603e2a0613ccb25b73ba32881c256bc9e74bd0e820f2adcc54ee6c832d30f404261a45b6c231ef6654bdb429a0ad1fb7ab3c538bd09c2a9a23f9d4f16ef3c')
-
-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
-}
-
-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/[email protected] 
"$pkgdir"/usr/lib/systemd/system/[email protected]
-  install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/
-  install -Dm755 v2ray -t "$pkgdir"/usr/bin/
-}

Copied: v2ray/repos/community-x86_64/PKGBUILD (from rev 1399840, 
v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-11 18:36:55 UTC (rev 1399841)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: pandada8 <[email protected]>
+
+pkgname=v2ray
+pkgver=5.3.0
+_commit=1aac75c8bc628cb45f68ec71c45cd436167a07c2
+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=("git+https://github.com/v2fly/v2ray-core.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+prepare() {
+  cd v2ray-core
+  sed -i 's|/usr/local/bin|/usr/bin|;s|/usr/local/etc|/etc|' 
release/config/systemd/system/*.service
+}
+
+build() {
+  cd v2ray-core
+  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
+}
+
+check() {
+  cd v2ray-core
+  go test -p 1 -tags json -v -timeout 30m ./...
+}
+
+package() {
+  cd v2ray-core
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/v2ray/
+  install -Dm644 release/config/systemd/system/v2ray.service -t 
"$pkgdir"/usr/lib/systemd/system/
+  install -Dm644 release/config/systemd/system/[email protected] -t 
"$pkgdir"/usr/lib/systemd/system/
+  install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/
+  install -Dm755 v2ray -t "$pkgdir"/usr/bin/
+}

Reply via email to