* [PR PATCH] V2raya
@ 2022-08-08 12:37 ketlrznt
2022-08-08 12:38 ` [PR PATCH] [Closed]: V2raya ketlrznt
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ketlrznt @ 2022-08-08 12:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]
There is a new pull request by ketlrznt against master on the void-packages repository
https://github.com/ketlrznt/void-packages v2raya
https://github.com/void-linux/void-packages/pull/38532
V2raya
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/38532.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-v2raya-38532.patch --]
[-- Type: text/x-diff, Size: 2990 bytes --]
From 4c5f367f41fa26adb6d61f5af71157c488b7c762 Mon Sep 17 00:00:00 2001
From: ketlrznt <tansuanyinliao8888@gmail.com>
Date: Mon, 8 Aug 2022 10:19:39 +0800
Subject: [PATCH 1/2] add package: v2raya
---
srcpkgs/v2raya/files/v2raya/run | 6 +++++
srcpkgs/v2raya/template | 41 +++++++++++++++++++++++++++++++++
2 files changed, 47 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..6528a00ccfc8
--- /dev/null
+++ b/srcpkgs/v2raya/files/v2raya/run
@@ -0,0 +1,6 @@
+#!/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..439dcba44da9
--- /dev/null
+++ b/srcpkgs/v2raya/template
@@ -0,0 +1,41 @@
+# Template file for 'v2raya'
+pkgname=v2raya
+version=1.5.9.1698.1
+revision=1
+wrksrc="v2rayA-${version}"
+build_wrksrc="service"
+build_style="go"
+go_import_path="github.com/v2rayA/v2rayA"
+go_ldflags="-X github.com/v2rayA/v2rayA/conf.Version=${version} -s -w"
+hostmakedepends="go nodejs yarn"
+depends="v2ray>=4.37.0_1"
+short_desc="Web GUI client of Project V which supports various protocals"
+maintainer="ketlrznt <tansuanyinliao8888@gmail.com>"
+license="AGPL-3.0-only"
+homepage="https://github.com/v2rayA/v2rayA"
+distfiles="https://github.com/v2rayA/v2rayA/archive/v${version}.tar.gz"
+checksum="247a357230c616bf48309c61d119686e4ad56939c05afef584c45051e9dc6220"
+
+# build for i686
+# issue: https://go.dev/issue/52919
+# fix: https://go-review.googlesource.com/c/go/+/421935/
+export CGO_CFLAGS="-fno-stack-protector"
+
+pre_build() {
+ cd ${wrksrc}/gui
+ yarn --check-files
+ OUTPUT_DIR="${wrksrc}/service/server/router/web" yarn build
+}
+
+post_install() {
+ # default go build style generates `v2rayA` file,
+ # change it to `v2raya` to keep lowercase consistent
+ vbin ${DESTDIR}/usr/bin/v2rayA v2raya
+ rm ${DESTDIR}/usr/bin/v2rayA
+ 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
+}
From 40f1b47a9587c1b0f3eb31b21f1dad4ba1aea312 Mon Sep 17 00:00:00 2001
From: ketlrznt <tansuanyinliao8888@gmail.com>
Date: Mon, 8 Aug 2022 20:36:06 +0800
Subject: [PATCH 2/2] test github workflow
---
srcpkgs/v2raya/template | 1 +
1 file changed, 1 insertion(+)
diff --git a/srcpkgs/v2raya/template b/srcpkgs/v2raya/template
index 439dcba44da9..be02bbd8fab4 100644
--- a/srcpkgs/v2raya/template
+++ b/srcpkgs/v2raya/template
@@ -19,6 +19,7 @@ checksum="247a357230c616bf48309c61d119686e4ad56939c05afef584c45051e9dc6220"
# build for i686
# issue: https://go.dev/issue/52919
# fix: https://go-review.googlesource.com/c/go/+/421935/
+#
export CGO_CFLAGS="-fno-stack-protector"
pre_build() {
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Closed]: V2raya
2022-08-08 12:37 [PR PATCH] V2raya ketlrznt
@ 2022-08-08 12:38 ` ketlrznt
2022-08-08 12:41 ` V2raya ketlrznt
2022-08-08 12:56 ` V2raya ketlrznt
2 siblings, 0 replies; 4+ messages in thread
From: ketlrznt @ 2022-08-08 12:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1080 bytes --]
There's a closed pull request on the void-packages repository
V2raya
https://github.com/void-linux/void-packages/pull/38532
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**|**briefly**|**NO**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: V2raya
2022-08-08 12:37 [PR PATCH] V2raya ketlrznt
2022-08-08 12:38 ` [PR PATCH] [Closed]: V2raya ketlrznt
@ 2022-08-08 12:41 ` ketlrznt
2022-08-08 12:56 ` V2raya ketlrznt
2 siblings, 0 replies; 4+ messages in thread
From: ketlrznt @ 2022-08-08 12:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
New comment by ketlrznt on void-packages repository
https://github.com/void-linux/void-packages/pull/38532#issuecomment-1208077428
Comment:
Sorry for disturbing.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: V2raya
2022-08-08 12:37 [PR PATCH] V2raya ketlrznt
2022-08-08 12:38 ` [PR PATCH] [Closed]: V2raya ketlrznt
2022-08-08 12:41 ` V2raya ketlrznt
@ 2022-08-08 12:56 ` ketlrznt
2 siblings, 0 replies; 4+ messages in thread
From: ketlrznt @ 2022-08-08 12:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
New comment by ketlrznt on void-packages repository
https://github.com/void-linux/void-packages/pull/38532#issuecomment-1208077428
Comment:
Sorry for disturbing. I opened this pr by mistake. Please have a look at #38528
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-08 12:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 12:37 [PR PATCH] V2raya ketlrznt
2022-08-08 12:38 ` [PR PATCH] [Closed]: V2raya ketlrznt
2022-08-08 12:41 ` V2raya ketlrznt
2022-08-08 12:56 ` V2raya ketlrznt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).