diff options
author | kamil <kamil> | 2015-09-08 21:50:28 +0000 |
---|---|---|
committer | kamil <kamil> | 2015-09-08 21:50:28 +0000 |
commit | 2d51e64aa4c616d19bda9821731d6583b96eb474 (patch) | |
tree | 4342e31e136d5f44bc645d668605923a7961f591 /misc | |
parent | b8fd3164d0462ca92371523761b8e625b09b27da (diff) | |
download | pkgsrc-2d51e64aa4c616d19bda9821731d6583b96eb474.tar.gz |
Import ansiweather-1.03 as misc/ansiweather
AnsiWeather is a Shell script for displaying the current weather conditions in
your terminal, with support for ANSI colors and Unicode symbols.
Weather data comes from the `OpenWeatherMap` free weather API.
The default location of a configuration file can be overriden by the global
environment variable ANSIWEATHERRC.
Beware, if configuration file doesn't exists, the script queries a GeoIP API to
try to approximate user location, this service may be overloaded at time so the
application might appear stalled.
Packaged in wip/ansiweather by Kamil Rytarowski
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ansiweather/DESCR | 11 | ||||
-rw-r--r-- | misc/ansiweather/Makefile | 48 | ||||
-rw-r--r-- | misc/ansiweather/PLIST | 7 | ||||
-rw-r--r-- | misc/ansiweather/distinfo | 5 |
4 files changed, 71 insertions, 0 deletions
diff --git a/misc/ansiweather/DESCR b/misc/ansiweather/DESCR new file mode 100644 index 00000000000..97d2a43ca33 --- /dev/null +++ b/misc/ansiweather/DESCR @@ -0,0 +1,11 @@ +AnsiWeather is a Shell script for displaying the current weather conditions in +your terminal, with support for ANSI colors and Unicode symbols. + +Weather data comes from the `OpenWeatherMap` free weather API. + +The default location of a configuration file can be overriden by the global +environment variable ANSIWEATHERRC. + +Beware, if configuration file doesn't exists, the script queries a GeoIP API to +try to approximate user location, this service may be overloaded at time so the +application might appear stalled. diff --git a/misc/ansiweather/Makefile b/misc/ansiweather/Makefile new file mode 100644 index 00000000000..477a857a191 --- /dev/null +++ b/misc/ansiweather/Makefile @@ -0,0 +1,48 @@ +# $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" diff --git a/misc/ansiweather/PLIST b/misc/ansiweather/PLIST new file mode 100644 index 00000000000..8448a0a6dd1 --- /dev/null +++ b/misc/ansiweather/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1 2015/09/08 21:50:28 kamil Exp $ +bin/ansiweather +share/doc/ansiweather/AUTHORS +share/doc/ansiweather/ChangeLog +share/doc/ansiweather/README.md +share/doc/ansiweather/ansiweather.plugin.zsh +share/examples/ansiweather/ansiweatherrc.example diff --git a/misc/ansiweather/distinfo b/misc/ansiweather/distinfo new file mode 100644 index 00000000000..ec8cb9b23b9 --- /dev/null +++ b/misc/ansiweather/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/09/08 21:50:28 kamil Exp $ + +SHA1 (ansiweather-1.03.tar.gz) = 3f8eccc0de0017494ae9cbeb43aaa13e9a244dea +RMD160 (ansiweather-1.03.tar.gz) = 46c20cdac8204ee1ffb5619753bed5322eae9342 +Size (ansiweather-1.03.tar.gz) = 6230 bytes |