summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24f0007b93ff21b0ce758c88b35a2a26736a9035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: mzz2017 <m@mzz.pub>

pkgname=v2raya
pkgver=0.6.5.1
pkgrel=1
install=.INSTALL
pkgdesc="一个支持全局透明代理且兼容 SS、SSR 的 V2Ray Linux GUI Client"
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/mzz2017/V2RayA"
license=('GPL')
depends=('glibc' 'v2ray')
makedepends=('go>=2:1.12.3-1')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mzz2017/V2RayA/archive/v$pkgver.tar.gz")
sha512sums=('SKIP')

build() {
    cd "V2RayA-$pkgver/service"
    export GO111MODULE=on
    export GOPROXY=https://goproxy.io
    go build -ldflags="-X V2RayA/global.Version=$pkgver" -o v2raya
}

package() {
    cd "V2RayA-$pkgver"
    install -Dm644 "install/v2raya.service" "$pkgdir/usr/lib/systemd/system/v2raya.service"
    install -Dm755 "service/v2raya" -t "$pkgdir/usr/bin/"
}