Files
pkgsrc-ng/misc/ansiweather/Makefile
2016-01-21 23:42:40 +01:00

49 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2015/09/08 21:50:28 kamil Exp $
DISTNAME= ansiweather-1.03
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_GITHUB:=fcambus/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= ${MASTER_SITE_GITHUB:=fcambus/ansiweather/}
COMMENT= Display current weather conditions in your terminal
LICENSE= modified-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
SUBST_FILES.shebang= ansiweather
SUBST_SED.shebang= -e 's,/usr/bin/env sh,${SH},'
SUBST_STAGE.shebang= 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
${RUN}${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR}
.endfor
${RUN}${INSTALL_DATA} ${WRKSRC}/ansiweatherrc.example \
${DESTDIR}${PREFIX}/${EGDIR}
.include "../../mk/bsd.pkg.mk"