pkgsrc-WIP-changes archive

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

ufetch: Enhance package



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Fri Dec 20 05:53:57 2019 +0100
Changeset:	53d03d8f0fac778706017e13b8f4aa8dbed1e2d9

Modified Files:
	ufetch/Makefile
	ufetch/PLIST
Added Files:
	ufetch/PLIST.Linux

Log Message:
ufetch: Enhance package

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

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

diffstat:
 ufetch/Makefile    | 38 +++++++++++++++++++++++++++++++-------
 ufetch/PLIST       |  1 -
 ufetch/PLIST.Linux | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+), 8 deletions(-)

diffs:
diff --git a/ufetch/Makefile b/ufetch/Makefile
index ff5bf22611..07ac24294e 100644
--- a/ufetch/Makefile
+++ b/ufetch/Makefile
@@ -1,9 +1,9 @@
 # $NetBSD$
 
 DISTNAME=	ufetch-v0.1
-PKGNAME=	${DISTNAME:tl}
+PKGNAME=	${DISTNAME:S/-v/-/}
 CATEGORIES=	sysutils
-MASTER_SITES=	https://gitlab.com/jschx/ufetch/-/archive/v0.1/
+MASTER_SITES=	https://gitlab.com/jschx/ufetch/-/archive/v${PKGVERSION_NOREV}/
 
 MAINTAINER=	voidpin%protonmail.com@localhost
 HOMEPAGE=	https://gitlab.com/jschx/ufetch/-/archive/v0.1/
@@ -13,12 +13,36 @@ LICENSE=	isc
 USE_LANGUAGES=	# none
 NO_BUILD=	yes
 
-INSTALLATION_DIRS+=	bin share/doc/ufetch
+INSTALLATION_DIRS+=	bin
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+FLAVOR=	netbsd
+.elif ${OPSYS} == "OpenBSD"
+FLAVOR=	openbsd
+.elif ${OPSYS} == "FreeBSD"
+FLAVOR=	freebsd
+.elif ${OPSYS} == "Darwin"
+FLAVOR=	macos
+.elif ${OPSYS} == "Linux"
+FLAVOR=	linux
+.else
+BROKEN=	"Unsupported OS"
+.endif
 
 do-install:
-	cd ${WRKSRC} && mv ufetch-netbsd ufetch && \
-	${INSTALL_SCRIPT} ${WRKSRC}/ufetch ${DESTDIR}${PREFIX}/bin/
-	cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/LICENSE \
-	${DESTDIR}${PREFIX}/share/doc/ufetch/LICENSE
+	${RUN} cd ${WRKSRC} && \
+		${INSTALL_SCRIPT} \
+			ufetch-${FLAVOR} ${DESTDIR}${PREFIX}/bin/ufetch
+.if ${OPSYS} == "Linux"
+.for f in alpine antergos arch archbang arco artix aux centos crux debian \
+          elementary fedora gentoo gnewsense guixsd hyperbola linuxlite mageia \
+          manjaro mint mx nixos parabola popos pureos raspbian slackware suse \
+          ubuntu void
+	${RUN} cd ${WRKSRC} && \
+		${INSTALL_SCRIPT} \
+			ufetch-${f} ${DESTDIR}${PREFIX}/bin/ufetch-${f}
+.endif
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/ufetch/PLIST b/ufetch/PLIST
index 2280bad0b5..550b065f10 100644
--- a/ufetch/PLIST
+++ b/ufetch/PLIST
@@ -1,3 +1,2 @@
 @comment $NetBSD$
 bin/ufetch
-share/doc/ufetch/LICENSE
diff --git a/ufetch/PLIST.Linux b/ufetch/PLIST.Linux
new file mode 100644
index 0000000000..25a93be47a
--- /dev/null
+++ b/ufetch/PLIST.Linux
@@ -0,0 +1,32 @@
+@comment $NetBSD$
+bin/ufetch-alpine
+bin/ufetch-antergos
+bin/ufetch-arch
+bin/ufetch-archbang
+bin/ufetch-arco
+bin/ufetch-artix
+bin/ufetch-aux
+bin/ufetch-centos
+bin/ufetch-crux
+bin/ufetch-debian
+bin/ufetch-elementary
+bin/ufetch-fedora
+bin/ufetch-gentoo
+bin/ufetch-gnewsense
+bin/ufetch-guixsd
+bin/ufetch-hyperbola
+bin/ufetch-linuxlite
+bin/ufetch-mageia
+bin/ufetch-manjaro
+bin/ufetch-mint
+bin/ufetch-mx
+bin/ufetch-nixos
+bin/ufetch-parabola
+bin/ufetch-popos
+bin/ufetch-pureos
+bin/ufetch-raspbian
+bin/ufetch-slackware
+bin/ufetch-suse
+bin/ufetch-ubuntu
+bin/ufetch-void
+bin/ufetch-voyager


Home | Main Index | Thread Index | Old Index