Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] common/environment/setup/install.sh: add vdesktop
@ 2021-08-19  6:18 maybe-one-day-ubermensch
  2021-08-19 20:01 ` [PR REVIEW] " ericonr
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: maybe-one-day-ubermensch @ 2021-08-19  6:18 UTC (permalink / raw)
  To: ml

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

There is a new pull request by maybe-one-day-ubermensch against master on the void-packages repository

https://github.com/maybe-one-day-ubermensch/void-packages vdesktop
https://github.com/void-linux/void-packages/pull/32575

common/environment/setup/install.sh: add vdesktop
Install function for installing `*.desktop` files.

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

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

From e1527176effe360a1fb3129d735b663783410f90 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Wed, 18 Aug 2021 22:58:41 -0700
Subject: [PATCH] common/environment/setup/install.sh: add vdesktop

Install function for installing `*.desktop` files.
---
 Manual.md                           |  6 ++++++
 common/environment/setup/install.sh | 13 ++++++++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/Manual.md b/Manual.md
index 4316363f66c4..b87b8ea2c484 100644
--- a/Manual.md
+++ b/Manual.md
@@ -310,6 +310,12 @@ The following functions are defined by `xbps-src` and can be used on any templat
 	- `foo.1.gz` -> `${DESTDIR}/usr/share/man/man1/foo.1`
 	- `foo.1.bz2` -> `${DESTDIR}/usr/share/man/man1/foo.1`
 
+- *vdesktop()* `vdesktop <file> [<name>]`
+
+	Installs `file` into `usr/share/applications/<pkgname>` in the pkg
+	`$DESTDIR`. The optional 2nd argument can be used to change the
+	`file name`.
+
 - *vdoc()* `vdoc <file> [<name>]`
 
 	Installs `file` into `usr/share/doc/<pkgname>` in the pkg
diff --git a/common/environment/setup/install.sh b/common/environment/setup/install.sh
index a6b68435eb43..a03f9ce3edce 100644
--- a/common/environment/setup/install.sh
+++ b/common/environment/setup/install.sh
@@ -13,7 +13,7 @@ _noglob_helper() {
 }
 
 # Apply _noglob to v* commands
-for cmd in vinstall vcopy vcompletion vmove vmkdir vbin vman vdoc vconf vsconf vlicense vsv; do
+for cmd in vinstall vcopy vcompletion vmove vmkdir vbin vman vdesktop vdoc vconf vsconf vlicense vsv; do
        alias ${cmd}="set -f; _noglob_helper _${cmd}"
 done
 
@@ -98,6 +98,17 @@ _vman() {
 	return 1
 }
 
+_vdesktop() {
+	local file="$1" targetfile="$2"
+
+	if [ $# -lt 1 ]; then
+		msg_red "$pkgver: vdesktop: 1 argument expected: <file>\n"
+		return 1
+	fi
+
+	vinstall "$file" 644 "usr/share/applications/${pkgname}" "$targetfile"
+}
+
 _vdoc() {
 	local file="$1" targetfile="$2"
 

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

end of thread, other threads:[~2022-06-17  2:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19  6:18 [PR PATCH] common/environment/setup/install.sh: add vdesktop maybe-one-day-ubermensch
2021-08-19 20:01 ` [PR REVIEW] " ericonr
2021-08-19 20:34 ` maybe-one-day-ubermensch
2021-08-19 20:34 ` maybe-one-day-ubermensch
2021-08-19 20:35 ` maybe-one-day-ubermensch
2021-08-19 20:35 ` maybe-one-day-ubermensch
2021-08-19 21:30 ` [PR PATCH] [Updated] " maybe-one-day-ubermensch
2021-08-19 21:33 ` maybe-one-day-ubermensch
2021-08-19 23:26 ` ericonr
2021-08-20  0:19 ` [PR PATCH] [Updated] " maybe-one-day-ubermensch
2021-08-20  0:19 ` maybe-one-day-ubermensch
2022-06-02  2:14 ` github-actions
2022-06-17  2:13 ` [PR PATCH] [Closed]: " github-actions

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).