pkgsrc/sysutils/ufetch/Makefile
2022-05-24 10:02:21 +00:00

51 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2022/05/24 10:02:21 nikita Exp $
DISTNAME= ufetch-v0.2
PKGNAME= ${DISTNAME:S/-v/-/}
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITLAB:=jschx/}
GITLAB_PROJECT= ufetch
GITLAB_RELEASE= v${PKGVERSION_NOREV}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://gitlab.com/jschx/ufetch/
COMMENT= Tiny system info for Unix-like Operating Systems
LICENSE= isc
USE_LANGUAGES= # none
NO_BUILD= yes
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:
${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}
. endfor
.endif
.include "../../mk/bsd.pkg.mk"