summaryrefslogtreecommitdiff
path: root/sysutils/ufetch/Makefile
blob: 8daa0e3d583f7a357f535ec161f64ecced817583 (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
50
51
# $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"