pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fixed ufetch



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Wed Dec 18 09:46:24 2019 +0100
Changeset:	5a308b54646592ab91f4885585cd0bb2cc41a7cc

Modified Files:
	ufetch/Makefile

Log Message:
Fixed ufetch

Implemented the fixes suggested by @wiz and @krytarowski
@krytarowski, the OS is hardcoded in the script
output of 'uname -s' will work only for a few.
At the moment the package works only for NetBSD.
I'll package pfetch also, which has proper OS check.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5a308b54646592ab91f4885585cd0bb2cc41a7cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ufetch/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diffs:
diff --git a/ufetch/Makefile b/ufetch/Makefile
index eecc46724d..ff5bf22611 100644
--- a/ufetch/Makefile
+++ b/ufetch/Makefile
@@ -11,14 +11,13 @@ COMMENT=	Tiny system info for Unix-like operating systems
 LICENSE=	isc
 
 USE_LANGUAGES=	# none
-USE_TOOLS+=	pax
 NO_BUILD=	yes
 
-INSTALLATION_DIRS+=	share/doc/ufetch
+INSTALLATION_DIRS+=	bin share/doc/ufetch
 
 do-install:
 	cd ${WRKSRC} && mv ufetch-netbsd ufetch && \
-	${PAX} -rw ufetch ${DESTDIR}${PREFIX}/bin/
+	${INSTALL_SCRIPT} ${WRKSRC}/ufetch ${DESTDIR}${PREFIX}/bin/
 	cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/LICENSE \
 	${DESTDIR}${PREFIX}/share/doc/ufetch/LICENSE
 


Home | Main Index | Thread Index | Old Index