Date: Saturday, February 11, 2023 @ 18:36:37 Author: felixonmars Revision: 1399840
upgpkg: v2ray 5.3.0-1 Modified: v2ray/trunk/PKGBUILD ----------+ PKGBUILD | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-11 18:36:11 UTC (rev 1399839) +++ PKGBUILD 2023-02-11 18:36:37 UTC (rev 1399840) @@ -2,7 +2,8 @@ # Contributor: pandada8 <[email protected]> pkgname=v2ray -pkgver=5.2.1 +pkgver=5.3.0 +_commit=1aac75c8bc628cb45f68ec71c45cd436167a07c2 pkgrel=1 pkgdesc="A platform for building proxies to bypass network restrictions" arch=('x86_64') @@ -11,16 +12,16 @@ 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') +source=("git+https://github.com/v2fly/v2ray-core.git#commit=$_commit") +sha512sums=('SKIP') prepare() { - cd v2ray-core-$pkgver + 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-$pkgver + cd v2ray-core export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external" export CGO_LDFLAGS="${LDFLAGS}" export CGO_CFLAGS="${CFLAGS}" @@ -29,15 +30,15 @@ } check() { - cd v2ray-core-$pkgver + cd v2ray-core 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] + 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/ }
