Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64
@ 2022-08-02  4:31 ketlrznt
  2022-08-02  4:38 ` classabbyamp
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  4:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]

There is a new pull request by ketlrznt against master on the void-packages repository

https://github.com/ketlrznt/void-packages master
https://github.com/void-linux/void-packages/pull/38420

New package: v2raya-bin-1.5.8.1_1.x86_64


#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- 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, (x86_64-LIBC)


A patch file from https://github.com/void-linux/void-packages/pull/38420.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-38420.patch --]
[-- Type: text/x-diff, Size: 2037 bytes --]

From 78377430e4b5bbf50360ac6db840e60f5e0a3675 Mon Sep 17 00:00:00 2001
From: ketlrznt <tansuanyinliao8888@gmail.com>
Date: Tue, 2 Aug 2022 12:18:59 +0800
Subject: [PATCH] add v2raya

---
 srcpkgs/v2raya-bin/files/v2raya-bin/run |  3 ++
 srcpkgs/v2raya-bin/template             | 42 +++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 srcpkgs/v2raya-bin/files/v2raya-bin/run
 create mode 100644 srcpkgs/v2raya-bin/template

diff --git a/srcpkgs/v2raya-bin/files/v2raya-bin/run b/srcpkgs/v2raya-bin/files/v2raya-bin/run
new file mode 100644
index 000000000000..ad7f4db3f469
--- /dev/null
+++ b/srcpkgs/v2raya-bin/files/v2raya-bin/run
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec /usr/bin/v2raya --log-disable-timestamp
diff --git a/srcpkgs/v2raya-bin/template b/srcpkgs/v2raya-bin/template
new file mode 100644
index 000000000000..09df6a8f27e5
--- /dev/null
+++ b/srcpkgs/v2raya-bin/template
@@ -0,0 +1,42 @@
+# Template file for 'v2raya-bin'
+pkgname=v2raya-bin
+version=1.5.8.1
+revision=1
+archs="x86_64"
+hostmakedepends="tar xz"
+depends="v2ray>=4.37.0-1 iptables"
+short_desc="A web GUI client of Project V which supports various protocols"
+maintainer="ketlrznt <tansuanyinliao8888@gmail.com>"
+license="AGPL-3.0"
+homepage="https://github.com/v2rayA/v2rayA"
+
+
+_v2raya_url="https://apt.v2raya.org/pool/main/v/v2raya"
+_file_name="v2raya_${version}_amd64.deb"
+distfiles="${_v2raya_url}/${_file_name}"
+checksum="aa9276f063ce42a2899cce7d195c555dc87768fc79ae0ea8b5ea75a102b994a4"
+
+do_extract() {
+	mkdir -p ${DESTDIR}
+	ar x ${XBPS_SRCDISTDIR}/v2raya-bin-$version/$_file_name
+}
+
+
+do_install() {
+
+	tar xf data.tar.gz -C ${DESTDIR}
+
+	# set permission
+	# v2ray
+	chmod 755 ${DESTDIR}/usr/bin/v2raya
+	# desktop launcher
+	chmod 644 ${DESTDIR}/usr/share/applications/v2raya.desktop
+	# icon
+	chmod 755 ${DESTDIR}/usr/share/icons/hicolor/512x512/apps/v2raya.png
+}
+
+post_install() {
+	vsv ${pkgname}
+	# remove unused systemd service
+        rm ${DESTDIR}/usr/lib/systemd/user/v2raya-lite.service
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-08-02  5:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
2022-08-02  4:38 ` classabbyamp
2022-08-02  4:47 ` ketlrznt
2022-08-02  4:48 ` ketlrznt
2022-08-02  4:48 ` ketlrznt
2022-08-02  4:54 ` ketlrznt
2022-08-02  4:55 ` classabbyamp
2022-08-02  5:01 ` ketlrznt
2022-08-02  5:03 ` ketlrznt
2022-08-02  5:03 ` ketlrznt
2022-08-02  5:03 ` classabbyamp
2022-08-02  5:09 ` ketlrznt
2022-08-02  5:14 ` ketlrznt
2022-08-02  5:15 ` ketlrznt
2022-08-02  5:15 ` [PR PATCH] [Closed]: " 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).