Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [RFC] xtools: add xtools-live subpackage
@ 2022-07-04  1:23 classabbyamp
  2022-07-04 13:12 ` leahneukirchen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: classabbyamp @ 2022-07-04  1:23 UTC (permalink / raw)
  To: ml

[-- 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/
+	}
+}

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

end of thread, other threads:[~2022-07-07 16:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04  1:23 [PR PATCH] [RFC] xtools: add xtools-live subpackage classabbyamp
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

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