summaryrefslogtreecommitdiff
path: root/sysutils/ufetch/Makefile
blob: f63ee4f51837f87eb673b8344382416dab22c82a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.4 2020/04/22 08:35:27 pin Exp $

DISTNAME=	ufetch-v0.2
PKGNAME=	${DISTNAME:S/-v/-/}
CATEGORIES=	sysutils
MASTER_SITES=	https://gitlab.com/jschx/ufetch/-/archive/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"