[arch-commits] Commit in v2ray/repos/community-x86_64 (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Mon Jan 4 19:41:16 UTC 2021
Date: Monday, January 4, 2021 @ 19:41:16
Author: foxboron
Revision: 807932
archrelease: copy trunk to community-x86_64
Added:
v2ray/repos/community-x86_64/PKGBUILD
(from rev 807931, v2ray/trunk/PKGBUILD)
Deleted:
v2ray/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 90 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 45 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-04 19:41:11 UTC (rev 807931)
+++ PKGBUILD 2021-01-04 19:41:16 UTC (rev 807932)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: pandada8 <pandada8 at gmail.com>
-
-pkgname=v2ray
-pkgver=4.33.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=('38580a8088bd6756489e7def220117a252afeaf220433929058ccdb01935d91dfc1707c63593d790f69b8309407c2786f5a65d9f8f52cbf049ac325eb408365a')
-
-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 807931, v2ray/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-01-04 19:41:16 UTC (rev 807932)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: pandada8 <pandada8 at gmail.com>
+
+pkgname=v2ray
+pkgver=4.34.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=('82a6f13bcaf61ec30b54d0f09ebff23d830bf2261731652179b739b758b4f116c5fef9890acf5832f75a5af8940ab9e8db198b5b4a1bc804736ff5b3d5d5d112')
+
+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