Github messages for voidlinux
 help / color / mirror / Atom feed
From: maybe-one-day-ubermensch <maybe-one-day-ubermensch@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] common/environment/setup/install.sh: add vdesktop
Date: Fri, 20 Aug 2021 02:19:55 +0200	[thread overview]
Message-ID: <20210820001955.jrgXtR4aUwyLFEtCuWfl3m8pupgv3R_kdHG63HtfzdQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32575@inbox.vuxu.org>

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

There is an updated 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: 7772 bytes --]

From 90403c1063751d037032b0b50d6cde9734d5c637 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 1/8] common/environment/setup/install.sh: add vdesktop

Install function for installing `*.desktop` files.

[ci-skip]
---
 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..67ff280cb66a 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` 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..4e697301e68f 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" "$targetfile"
+}
+
 _vdoc() {
 	local file="$1" targetfile="$2"
 

From a30a296c29323203d72fbf8ebd9f4b45a05e3d50 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Thu, 19 Aug 2021 13:44:45 -0700
Subject: [PATCH 2/8] gamehub: `vdesktop`ify

---
 srcpkgs/gamehub/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/gamehub/template b/srcpkgs/gamehub/template
index ccbf98b53483..fc01848598a5 100644
--- a/srcpkgs/gamehub/template
+++ b/srcpkgs/gamehub/template
@@ -16,5 +16,5 @@ distfiles="https://github.com/tkashkin/GameHub/archive/${version}-1-master.tar.g
 checksum=4244c914d7427933727ec0611886720b9325c4d4a852e0e8c283f6331ebd30e2
 
 post_install() {
-	vinstall data/com.github.tkashkin.gamehub.desktop.in 644 usr/share/applications com.github.tkashkin.gamehub.desktop
+	vdesktop data/com.github.tkashkin.gamehub.desktop.in com.github.tkashkin.gamehub.desktop
 }

From 8121c00616821dd7b95a76c10edbdaa65cca392a Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Thu, 19 Aug 2021 13:50:59 -0700
Subject: [PATCH 3/8] vivaldi: `vdesktop`ify

---
 srcpkgs/vivaldi/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/vivaldi/template b/srcpkgs/vivaldi/template
index 377b0f008dbb..f996fec0e838 100644
--- a/srcpkgs/vivaldi/template
+++ b/srcpkgs/vivaldi/template
@@ -26,8 +26,7 @@ do_extract() {
 }
 
 do_install() {
-	vinstall usr/share/applications/vivaldi-stable.desktop 0644 \
-		usr/share/applications
+	vdesktop usr/share/applications/vivaldi-stable.desktop
 
 	vmkdir opt
 	vcopy opt/vivaldi opt

From 2c5e196adec471d26125bdd3ea0f9bbd0a95aa18 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Thu, 19 Aug 2021 13:55:43 -0700
Subject: [PATCH 4/8] adobe-flash-plugin: `vdesktop`ify

---
 srcpkgs/adobe-flash-plugin/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/adobe-flash-plugin/template b/srcpkgs/adobe-flash-plugin/template
index df9f3f997a59..8e3b356b6b40 100644
--- a/srcpkgs/adobe-flash-plugin/template
+++ b/srcpkgs/adobe-flash-plugin/template
@@ -45,8 +45,7 @@ do_install() {
 		vinstall usr/share/icons/hicolor/${i}/apps/flash-player-properties.png \
 		644 usr/share/icons/hicolor/${i}/apps
 	done
-	vinstall usr/share/applications/flash-player-properties.desktop 644 \
-		usr/share/applications
+	vdesktop usr/share/applications/flash-player-properties.desktop
 	vinstall usr/share/kde4/services/kcm_adobe_flash_player.desktop 644 \
 		usr/share/kde4/services
 	vlicense "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_eula##*/}" LICENSE.pdf

From d2360f78976cfbc902ecf6a505c45a409164e6f6 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Thu, 19 Aug 2021 13:58:05 -0700
Subject: [PATCH 5/8] openlierox: `vdesktop`ify

---
 srcpkgs/openlierox/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/openlierox/template b/srcpkgs/openlierox/template
index 7ae0e22f2d3d..140b6dd268ac 100644
--- a/srcpkgs/openlierox/template
+++ b/srcpkgs/openlierox/template
@@ -34,7 +34,7 @@ do_install() {
 	vbin build/bin/openlierox
 	vman doc/openlierox.6
 	vinstall share/OpenLieroX.svg 644 usr/share/pixmaps
-	vinstall share/openlierox-openlierox.desktop 644 usr/share/applications openlierox.desktop
+	vdesktop share/openlierox-openlierox.desktop openlierox.desktop
 	vmkdir usr/share/OpenLieroX
 	vcopy share/gamedir/* usr/share/OpenLieroX
 	find ${DESTDIR}/usr/share/OpenLieroX -type d -exec chmod 755 "{}" \;

From 0912551649591154c37fd8a8582e88e0d197587a Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Thu, 19 Aug 2021 14:00:44 -0700
Subject: [PATCH 6/8] kobodeluxe: `vdesktop`ify

---
 srcpkgs/kobodeluxe/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/kobodeluxe/template b/srcpkgs/kobodeluxe/template
index 94e3e8329728..4bef9d40eb51 100644
--- a/srcpkgs/kobodeluxe/template
+++ b/srcpkgs/kobodeluxe/template
@@ -19,7 +19,7 @@ post_extract() {
 	bsdtar xf icons.tar.gz
 }
 post_install() {
-	vinstall icons/KDE/kobo-deluxe.desktop 644 usr/share/applications kobodl.desktop
+	vdesktop icons/KDE/kobo-deluxe.desktop kobodl.desktop
 	for _size in 16 22 32 48 64 128; do
 		vinstall icons/KDE/icons/${_size}x${_size}/kobodl.png 644 \
 			usr/share/icons/hicolor/${_size}x${_size}/apps

From 7d65972021613b14db7245addbfc3dfd4237bd61 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Thu, 19 Aug 2021 14:14:50 -0700
Subject: [PATCH 7/8] lf: `vdesktop`ify

---
 srcpkgs/lf/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/lf/template b/srcpkgs/lf/template
index ad60a7a2ec31..d7c9f968e853 100644
--- a/srcpkgs/lf/template
+++ b/srcpkgs/lf/template
@@ -19,5 +19,5 @@ post_install() {
 	vcompletion etc/lf.fish fish
 	vcompletion etc/lf.zsh zsh
 	vcompletion etc/lf.bash bash
-	vinstall lf.desktop 644 usr/share/applications
+	vdesktop lf.desktop
 }

From d0372f6f9d9d330d8cc1fe1fb422534454405192 Mon Sep 17 00:00:00 2001
From: Jony <maybe-one-day-ubermensch@protonmail.com>
Date: Thu, 19 Aug 2021 14:17:12 -0700
Subject: [PATCH 8/8] mediainfo: `vdesktop`ify

---
 srcpkgs/mediainfo/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/mediainfo/template b/srcpkgs/mediainfo/template
index c18d68247cc1..805d5f476fa5 100644
--- a/srcpkgs/mediainfo/template
+++ b/srcpkgs/mediainfo/template
@@ -38,8 +38,7 @@ do_install() {
 		usr/share/icons/hicolor/scalable/apps mediainfo.svg
 	vinstall ${wrksrc}/Source/Resource/Image/MediaInfo.png 644 \
 		usr/share/pixmaps mediainfo-gui.png
-	vinstall ${wrksrc}/Project/GNU/GUI/mediainfo-gui.desktop 644 \
-		usr/share/applications
+	vdesktop ${wrksrc}/Project/GNU/GUI/mediainfo-gui.desktop
 }
 
 mediainfo-cli_package() {

  parent reply	other threads:[~2021-08-20  0:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19  6:18 [PR PATCH] " 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 ` maybe-one-day-ubermensch [this message]
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

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=20210820001955.jrgXtR4aUwyLFEtCuWfl3m8pupgv3R_kdHG63HtfzdQ@z \
    --to=maybe-one-day-ubermensch@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).