[arch-commits] Commit in v2ray/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Sep 12 15:05:36 UTC 2020
Date: Saturday, September 12, 2020 @ 15:05:35
Author: felixonmars
Revision: 704065
archrelease: copy trunk to community-x86_64
Added:
v2ray/repos/community-x86_64/PKGBUILD
(from rev 704064, v2ray/trunk/PKGBUILD)
Deleted:
v2ray/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 90 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 45 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-12 15:05:25 UTC (rev 704064)
+++ PKGBUILD 2020-09-12 15:05:35 UTC (rev 704065)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: pandada8 <pandada8 at gmail.com>
-
-pkgname=v2ray
-pkgver=4.28.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")
-sha512sums=('bb5084182a489de3379ca66266d5c1becfae24779714e8e605bd947496f0640d9c707547d34a60c925f9cf66b9ca1242f981de4b585c088ea75d6180f4870e59')
-
-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 704064, v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-09-12 15:05:35 UTC (rev 704065)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: pandada8 <pandada8 at gmail.com>
+
+pkgname=v2ray
+pkgver=4.28.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=("$pkgname-$pkgver.tar.gz::https://github.com/v2fly/v2ray-core/archive/v$pkgver.tar.gz")
+sha512sums=('14c86cc9f8ceedeac5b0e9a79878c378d07d1c299e8917c768e89db214f26f77541a072e1892b09c1f95ffb2aa9dd568655ec2da883fa7bad5d6ba8f008cbd9e')
+
+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