Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [RFC] xtools: add xtools-live subpackage
Date: Mon, 04 Jul 2022 03:23:15 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37826@inbox.vuxu.org> (raw)

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

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

https://github.com/classabbyamp/void-packages xtools-live
https://github.com/void-linux/void-packages/pull/37826

[RFC] xtools: add xtools-live subpackage
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

- Not too sure about this approach, it's a bit clunky, and leaves non-included tools in the manpage.
- Should the subpackage be named as such or something else?
- is this list of tools a good selection? I took all the ones that aren't related to packaging *and* don't need git (the largest dependency by far)

see also void-linux/void-mklive#

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

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

From 5f78fb4838abe84ee23ea725737a01eee7e4b1a1 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Sun, 3 Jul 2022 20:35:54 -0400
Subject: [PATCH] xtools: add xtools-live subpackage

---
 srcpkgs/xtools-live     |  1 +
 srcpkgs/xtools/template | 19 ++++++++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/xtools-live

diff --git a/srcpkgs/xtools-live b/srcpkgs/xtools-live
new file mode 120000
index 000000000000..2af5852036b4
--- /dev/null
+++ b/srcpkgs/xtools-live
@@ -0,0 +1 @@
+xtools
\ No newline at end of file
diff --git a/srcpkgs/xtools/template b/srcpkgs/xtools/template
index 5392fb9a0602..152138b4bad4 100644
--- a/srcpkgs/xtools/template
+++ b/srcpkgs/xtools/template
@@ -1,7 +1,7 @@
 # Template file for 'xtools'
 pkgname=xtools
 version=0.64
-revision=1
+revision=2
 build_style=gnu-makefile
 depends="bash curl findutils git make spdx-licenses-list xbps"
 short_desc="Opinionated helpers for working with XBPS"
@@ -10,3 +10,20 @@ license="Public Domain"
 homepage="http://git.vuxu.org/xtools"
 distfiles="http://git.vuxu.org/xtools/snapshot/xtools-${version}.tar.gz"
 checksum=a49140066744d4aaaf856fb40d92df26d6d3f80b2aa03da1746c513e7eab40be
+
+xtools-live_package() {
+	short_desc+=" - minimal subset for Void live systems"
+	depends="bash findutils xbps"
+	conflicts="${sourcepkg}>=0.64_2"
+	pkg_install() {
+		vmkdir usr/bin
+		vmkdir usr/share/man/man1
+		for tool in xcheckrestart xchroot xclash xdbg xdiff xdowngrade xetcchanges \
+			xgrep xhog xilog xmandoc xmksv xnodev xoptdiff xpkg xuname xvoidstrap; do
+			vcopy ${DESTDIR}/usr/bin/$tool usr/bin/$tool
+			vcopy ${DESTDIR}/usr/share/man/man1/$tool.1 usr/share/man/man1/$tool.1
+		done
+		vcopy ${DESTDIR}/usr/share/man/man1/xtools.1 usr/share/man/man1/xtools.1
+		vcopy ${DESTDIR}/usr/share/zsh usr/share/
+	}
+}

             reply	other threads:[~2022-07-04  1:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04  1:23 classabbyamp [this message]
2022-07-04 13:12 ` leahneukirchen
2022-07-04 16:02 ` [PR PATCH] [Updated] " classabbyamp
2022-07-04 16:06 ` classabbyamp
2022-07-04 17:26 ` [PR PATCH] [Updated] [RFC] xtools: add xtools-minimal subpackage classabbyamp
2022-07-07 16:01 ` [PR PATCH] [Merged]: " classabbyamp

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-37826@inbox.vuxu.org \
    --to=classabbyamp@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).