From 257c2338ca84ae9c86c6dd3acdb35e052ff926be Mon Sep 17 00:00:00 2001 From: xiarenfan Date: Sun, 12 Feb 2023 16:07:42 +0800 Subject: [PATCH 1/2] XBPS --- srcpkgs/v2rayA/files/v2rayA/run | 7 +++++++ srcpkgs/v2rayA/template | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 srcpkgs/v2rayA/files/v2rayA/run create mode 100644 srcpkgs/v2rayA/template diff --git a/srcpkgs/v2rayA/files/v2rayA/run b/srcpkgs/v2rayA/files/v2rayA/run new file mode 100644 index 000000000000..03461aca50f3 --- /dev/null +++ b/srcpkgs/v2rayA/files/v2rayA/run @@ -0,0 +1,7 @@ +#!/bin/sh + +export XDG_DATA_HOME="/usr/share" + +exec /usr/bin/v2rayA + + diff --git a/srcpkgs/v2rayA/template b/srcpkgs/v2rayA/template new file mode 100644 index 000000000000..cf01c9c4b968 --- /dev/null +++ b/srcpkgs/v2rayA/template @@ -0,0 +1,32 @@ +# Template file for 'v2rayA' +pkgname=v2rayA +version=2.0.1 +revision=1 +build_wrksrc="service" +build_style="go" +go_import_path="github.com/v2rayA/v2rayA" +go_ldflags="-X github.com/v2rayA/v2rayA/conf.Version=${version}" +hostmakedepends="nodejs yarn" +depends="v2ray>=5.0.0 xdg-utils" +short_desc="Web GUI client of Project V which supports various protocals" +maintainer="xiarenfan " +license="AGPL-3.0-only" +homepage="https://github.com/v2rayA/v2rayA" +distfiles="https://github.com/v2rayA/v2rayA/archive/v${version}.tar.gz" +checksum="5f79a42c4a720dec778a5c03c925dbbeb8d0fedebbb38ddf90d2d9712480b6a4" + +pre_build() { + cd ${wrksrc}/gui + yarn --check-files + OUTPUT_DIR="${wrksrc}/service/server/router/web" yarn build + export GO111MODULE=on +} + +post_install() { + cd ${wrksrc} + vinstall install/universal/v2raya.desktop 0644 usr/share/applications + vsv v2rayA + vinstall gui/public/img/icons/android-chrome-512x512.png \ + 0644 usr/share/icons/hicolor/512x512/apps/ v2raya.png + vlicense LICENSE +} \ No newline at end of file From 1b87c502577902f5163e2dcc4decfd71df36e634 Mon Sep 17 00:00:00 2001 From: xiarenfan <117075325+xiarenfan@users.noreply.github.com> Date: Tue, 14 Feb 2023 16:58:51 +0800 Subject: [PATCH 2/2] Update and rename srcpkgs/v2rayA/template to srcpkgs / v2rayA /template --- {srcpkgs/v2rayA => srcpkgs / v2rayA }/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {srcpkgs/v2rayA => srcpkgs / v2rayA }/template (99%) diff --git a/srcpkgs/v2rayA/template b/srcpkgs / v2rayA /template similarity index 99% rename from srcpkgs/v2rayA/template rename to srcpkgs / v2rayA /template index cf01c9c4b968..914a54f4dd92 100644 --- a/srcpkgs/v2rayA/template +++ b/srcpkgs / v2rayA /template @@ -29,4 +29,4 @@ post_install() { vinstall gui/public/img/icons/android-chrome-512x512.png \ 0644 usr/share/icons/hicolor/512x512/apps/ v2raya.png vlicense LICENSE -} \ No newline at end of file +}