summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormzz20172019-11-21 23:57:02 +0800
committermzz20172019-11-21 23:57:02 +0800
commit0b43c101d8088aa2656008dbcfaf56d38f8711bd (patch)
treeb5d14f061822868695a1e45fbb4092aa703efb4b
downloadaur-0b43c101d8088aa2656008dbcfaf56d38f8711bd.tar.gz
AUR
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD28
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e940d3e32db
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = v2raya
+ pkgdesc = V2RayA是一个支持全局透明代理的V2Ray Linux客户端。
+ pkgver = {{pkgver}}
+ pkgrel = 1
+ url = https://github.com/mzz2017/V2RayA
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ arch = armv6h
+ arch = aarch64
+ license = GPL
+ makedepends = go>=2:1.11.3-1
+ depends = glibc
+ depends = v2ray
+ source = v2raya-{{pkgver}}.tar.gz::https://github.com/mzz2017/V2RayA/archive/v{{pkgver}}.tar.gz
+ sha512sums = SKIP
+
+pkgname = v2raya
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef73e5cd16a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: mzz2017 <m@mzz.pub>
+
+pkgname=v2raya
+pkgver=0.3.2
+pkgrel=1
+pkgdesc="V2RayA是一个支持全局透明代理的V2Ray Linux客户端。"
+arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
+url="https://github.com/mzz2017/V2RayA"
+license=('GPL')
+depends=('glibc' 'v2ray')
+makedepends=('go>=2:1.11.3-1')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mzz2017/V2RayA/archive/v$pkgver.tar.gz")
+sha512sums=('SKIP')
+
+prepare() {
+ export GO111MODULE=on
+}
+
+build() {
+ cd "V2RayA-$pkgver/service"
+ go build -mod=vendor -ldflags='-X 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/"
+}