summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormzz20172020-09-05 08:56:18 +0000
committermzz20172020-09-05 08:56:18 +0000
commit752c4d593f2732ba3d82f46078f4306efca10fb8 (patch)
tree3c5884ddf06467c3a8ac8ad5395b5b67ab031dba /PKGBUILD
parentd3b4c0372232179203dce73a3328edf6d3ccc81a (diff)
downloadaur-752c4d593f2732ba3d82f46078f4306efca10fb8.tar.gz
release v1.0.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0fd1c7076e0..b1066ac4d66 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: mzz2017 <m@mzz.pub>
pkgname=v2raya
-pkgver=1.0.0
+pkgver=1.0.1
pkgrel=1
install=.INSTALL
pkgdesc="A web GUI client of Project V which supports V2Ray, SS, SSR, Trojan and Pingtunnel protocols"
@@ -9,16 +9,21 @@ 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' 'nodejs>=12.13.0-1' 'npm')
+makedepends=('go>=2:1.12.3-1' 'nodejs>=14' 'yarn')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mzz2017/v2rayA/archive/v$pkgver.tar.gz")
sha512sums=('SKIP')
build() {
- cd "v2rayA-$pkgver/service"
+ cd "$srcdir/v2rayA-$pkgver/gui"
+ yarn config set registry https://registry.npm.taobao.org
+ yarn config set sass_binary_site https://cdn.npm.taobao.org/dist/node-sass -g
+ yarn
+ yarn build
+
+ cd "$srcdir/v2rayA-$pkgver/service"
export GO111MODULE=on
export GOPROXY=https://goproxy.io
go build -ldflags="-X github.com/mzz2017/v2rayA/global.Version=$pkgver" -o v2raya
- cd ../gui && npm install --registry https://registry.npm.taobao.org && npm run build
}
package() {