Date: Monday, June 1, 2020 @ 15:52:04 Author: felixonmars Revision: 637844
archrelease: copy trunk to community-x86_64 Added: v2ray/repos/community-x86_64/PKGBUILD (from rev 637843, v2ray/trunk/PKGBUILD) v2ray/repos/community-x86_64/v2ray.service (from rev 637843, v2ray/trunk/v2ray.service) Deleted: v2ray/repos/community-x86_64/PKGBUILD v2ray/repos/community-x86_64/v2ray.service ---------------+ PKGBUILD | 96 ++++++++++++++++++++++++++++---------------------------- v2ray.service | 26 +++++++-------- 2 files changed, 61 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-06-01 15:51:54 UTC (rev 637843) +++ PKGBUILD 2020-06-01 15:52:04 UTC (rev 637844) @@ -1,48 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: pandada8 <panda...@gmail.com> - -pkgname=v2ray -pkgver=4.23.2 -pkgrel=1 -pkgdesc="A platform for building proxies to bypass network restrictions" -arch=('x86_64') -url="https://github.com/v2ray/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/v2ray/v2ray-core/archive/v$pkgver.tar.gz" - 'v2ray.service') -sha512sums=('2738e72f96e8d24e67fb7b26b5538216cf219c8eb12573dcd68c552e6bb54386cbacaaa225bd3f6b218b9cac2f24bff9047e0d0911177603ca4cba31c7f5dcab' - '507cb9033ced1ae7886ea186461edb906e2ec7125aa9465c02f7c49e631604b718952d0ddfc1f90636c87a3ab6accd080f65f54c8e969e889eb4f79c23cdfcd9') - -build() { - cd "v2ray-core-$pkgver" - export GOFLAGS="-buildmode=pie -trimpath" - 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/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service - sed -i -e 's|/usr/bin/v2ray/v2ray|/usr/lib/v2ray/v2ray|' \ - "$pkgdir"/usr/lib/systemd/system/v2ray.service - install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/ - install -Dm755 v2ray -t "$pkgdir"/usr/lib/v2ray/ - install -Dm755 v2ctl -t "$pkgdir"/usr/lib/v2ray/ - install -dm755 "$pkgdir"/usr/bin - ln -s ../lib/v2ray/v2ray "$pkgdir"/usr/bin/v2ray - ln -s ../lib/v2ray/v2ctl "$pkgdir"/usr/bin/v2ctl - - install -Dm644 "$srcdir"/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray@.service -} Copied: v2ray/repos/community-x86_64/PKGBUILD (from rev 637843, v2ray/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-06-01 15:52:04 UTC (rev 637844) @@ -0,0 +1,48 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: pandada8 <panda...@gmail.com> + +pkgname=v2ray +pkgver=4.23.3 +pkgrel=1 +pkgdesc="A platform for building proxies to bypass network restrictions" +arch=('x86_64') +url="https://github.com/v2ray/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/v2ray/v2ray-core/archive/v$pkgver.tar.gz" + 'v2ray.service') +sha512sums=('52dfefad125909751b81ba24e8036fc474c33f120baa97d309595176e4bac29dd25eed6b2e62a1f3a170d522ae1a99ea50f06abe4846d808ae258a1f22851711' + '507cb9033ced1ae7886ea186461edb906e2ec7125aa9465c02f7c49e631604b718952d0ddfc1f90636c87a3ab6accd080f65f54c8e969e889eb4f79c23cdfcd9') + +build() { + cd "v2ray-core-$pkgver" + export GOFLAGS="-buildmode=pie -trimpath" + 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/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray.service + sed -i -e 's|/usr/bin/v2ray/v2ray|/usr/lib/v2ray/v2ray|' \ + "$pkgdir"/usr/lib/systemd/system/v2ray.service + install -Dm644 release/config/*.json -t "$pkgdir"/etc/v2ray/ + install -Dm755 v2ray -t "$pkgdir"/usr/lib/v2ray/ + install -Dm755 v2ctl -t "$pkgdir"/usr/lib/v2ray/ + install -dm755 "$pkgdir"/usr/bin + ln -s ../lib/v2ray/v2ray "$pkgdir"/usr/bin/v2ray + ln -s ../lib/v2ray/v2ctl "$pkgdir"/usr/bin/v2ctl + + install -Dm644 "$srcdir"/v2ray.service "$pkgdir"/usr/lib/systemd/system/v2ray@.service +} Deleted: v2ray.service =================================================================== --- v2ray.service 2020-06-01 15:51:54 UTC (rev 637843) +++ v2ray.service 2020-06-01 15:52:04 UTC (rev 637844) @@ -1,13 +0,0 @@ -[Unit] -Description=V2Ray Service -After=network.target -Wants=network.target - -[Service] -Type=exec -PIDFile=/var/run/v2ray-%i.pid -ExecStart=/usr/bin/v2ray -config /etc/v2ray/%i.json -Restart=on-failure - -[Install] -WantedBy=multi-user.target Copied: v2ray/repos/community-x86_64/v2ray.service (from rev 637843, v2ray/trunk/v2ray.service) =================================================================== --- v2ray.service (rev 0) +++ v2ray.service 2020-06-01 15:52:04 UTC (rev 637844) @@ -0,0 +1,13 @@ +[Unit] +Description=V2Ray Service +After=network.target +Wants=network.target + +[Service] +Type=exec +PIDFile=/var/run/v2ray-%i.pid +ExecStart=/usr/bin/v2ray -config /etc/v2ray/%i.json +Restart=on-failure + +[Install] +WantedBy=multi-user.target