From: ketlrznt <ketlrznt@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64
Date: Tue, 02 Aug 2022 06:31:53 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38420@inbox.vuxu.org> (raw)
[-- 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
+}
next reply other threads:[~2022-08-02 4:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 4:31 ketlrznt [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38420@inbox.vuxu.org \
--to=ketlrznt@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).