summaryrefslogtreecommitdiff
path: root/misc/ansiweather/Makefile
blob: a3365ed44718e355a328ae2625c5cd8d2e69da4f (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
# $NetBSD: Makefile,v 1.5 2016/12/18 18:57:05 maya Exp $

DISTNAME=	ansiweather-1.09
CATEGORIES=	misc
MASTER_SITES=	${MASTER_SITE_GITHUB:=fcambus/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/fcambus/ansiweather/
COMMENT=	Display current weather conditions in your terminal
LICENSE=	2-clause-bsd

USE_LANGUAGES=	# none

USE_TOOLS+=	awk:run date:run grep:run

DEPENDS+=	curl-[0-9]*:../../www/curl
DEPENDS+=	jq-[0-9]*:../../devel/jq

NO_CONFIGURE=	yes
NO_BUILD=	yes

INSTALL_UNSTRIPPED=	yes

DOCDIR=		share/doc/ansiweather
EGDIR=		share/examples/ansiweather

CONF_FILES+=	${EGDIR}/ansiweatherrc.example ${PKG_SYSCONFDIR}/ansiweatherrc

SUBST_CLASSES+=		config shebang
SUBST_FILES.config=	ansiweather
SUBST_SED.config=	-e 's,~/.ansiweatherrc,${PKG_SYSCONFDIR}/ansiweatherrc,'
SUBST_STAGE.config=	post-patch

AUTO_MKDIRS=	yes

do-install:
	${RUN}${INSTALL_PROGRAM} ${WRKSRC}/ansiweather ${DESTDIR}${PREFIX}/bin
.for f in AUTHORS ChangeLog README.md ansiweather.plugin.zsh ansiweather.1
	${RUN}${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR}
.endfor
	${RUN}${INSTALL_DATA} ${WRKSRC}/ansiweatherrc.example \
	                      ${DESTDIR}${PREFIX}/${EGDIR}

.include "../../mk/bsd.pkg.mk"