summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD23
2 files changed, 13 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e3b69b091c0..c3dfc6a67e2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = v2raya
pkgdesc = A web GUI client of Project V which supports V2Ray, SS, SSR, Trojan and Pingtunnel protocols
- pkgver = 1.1.0
+ pkgver = 1.1.1
pkgrel = 1
url = https://github.com/v2rayA/v2rayA
install = .INSTALL
@@ -9,14 +9,14 @@ pkgbase = v2raya
arch = armv7h
arch = armv6h
arch = aarch64
- license = GPL
+ license = GPL3
makedepends = go>=2:1.12.3-1
makedepends = nodejs>=14
makedepends = yarn
makedepends = python2
depends = glibc
depends = v2ray
- source = v2raya-1.1.0.tar.gz::https://github.com/v2rayA/v2rayA/archive/v1.1.0.tar.gz
+ source = v2raya-1.1.1.tar.gz::https://github.com/v2rayA/v2rayA/archive/v1.1.1.tar.gz
sha512sums = SKIP
pkgname = v2raya
diff --git a/PKGBUILD b/PKGBUILD
index b5de984607e..21b76a3b2d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: mzz2017 <m@mzz.pub>
pkgname=v2raya
-pkgver=1.1.0
+pkgver=1.1.1
pkgrel=1
install=.INSTALL
pkgdesc="A web GUI client of Project V which supports V2Ray, SS, SSR, Trojan and Pingtunnel protocols"
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url="https://github.com/v2rayA/v2rayA"
-license=('GPL')
+license=('GPL3')
depends=('glibc' 'v2ray')
makedepends=('go>=2:1.12.3-1' 'nodejs>=14' 'yarn' 'python2')
source=("$pkgname-$pkgver.tar.gz::https://github.com/v2rayA/v2rayA/archive/v$pkgver.tar.gz")
@@ -23,18 +23,15 @@ build() {
cd "$srcdir/v2rayA-$pkgver/service"
export GO111MODULE=on
export GOPROXY=https://goproxy.io
- go build -ldflags="-X github.com/v2rayA/v2rayA/global.Version=$pkgver" -o v2raya
+ go build -ldflags="-X github.com/v2rayA/v2rayA/global.Version=$pkgver -s -w" -o v2raya
}
package() {
- cd "$srcdir/v2rayA-$pkgver"
-
- install -Dm644 "install/universal/v2raya.service" "$pkgdir/usr/lib/systemd/system/v2raya.service"
- install -Dm755 "service/v2raya" -t "$pkgdir/usr/bin/"
-
- install -Dm644 "gui/public/img/icons/android-chrome-512x512.png" "$pkgdir/usr/share/icons/v2raya.png"
- install -Dm755 "install/universal/v2raya.desktop" -t "$pkgdir/usr/share/applications/"
-
- install -d -Dm755 "web" "$pkgdir/etc/v2raya/web"
- cp -r web/* "$pkgdir/etc/v2raya/web"
+ cd "${srcdir}"/"v2raya-${pkgver}"/
+ install -Dm 755 service/v2raya -t "${pkgdir}"/usr/bin/
+ find web -type d -exec install -vd "${pkgdir}"/etc/v2raya/{} \;
+ find web -type f -exec install -vm 644 {} "${pkgdir}"/etc/v2raya/{} \;
+ install -Dm 644 install/universal/v2raya.desktop -t "${pkgdir}"/usr/share/applications/
+ install -Dm 644 install/universal/v2raya.service -t "${pkgdir}"/usr/lib/systemd/system/
+ install -Dm 644 gui/public/img/icons/android-chrome-512x512.png "${pkgdir}"/usr/share/icons/hicolor/512x512/apps/v2raya.png
}