40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Template file for 'weather'
|
|
pkgname=weather
|
|
version=2.4
|
|
revision=1
|
|
archs=noarch
|
|
depends="python3"
|
|
conf_files="/etc/weatherrc"
|
|
short_desc="CLI utility for current (METAR) weather conditions and forecasts"
|
|
maintainer="Richard Taityr <dicktyr@yahoo.co.uk>"
|
|
license="ISC"
|
|
homepage="http://fungi.yuggoth.org/weather/"
|
|
distfiles="http://fungi.yuggoth.org/${pkgname}/src/${pkgname}-${version}.tar.xz"
|
|
checksum=6a5bac6110922b584ee635ddfce7594f8a3fea6b0b2763435bd641f6c9a4c420
|
|
|
|
do_install() {
|
|
vbin weather
|
|
vinstall weather.py 644 "${py3_sitelib}"
|
|
|
|
# correlation sets
|
|
vmkdir usr/share/weather
|
|
vinstall airports 644 usr/share/weather
|
|
vinstall places 644 usr/share/weather
|
|
vinstall stations 644 usr/share/weather
|
|
vinstall zctas 644 usr/share/weather
|
|
vinstall zones 644 usr/share/weather
|
|
|
|
# set path for correlation sets
|
|
cp weatherrc weatherrc.new
|
|
echo 'setpath = .:~/.weather:/usr/share/weather' >> weatherrc.new
|
|
vinstall weatherrc.new 644 etc weatherrc
|
|
|
|
vman weather.1
|
|
vman weatherrc.5
|
|
|
|
for f in FAQ README NEWS; do
|
|
vdoc "$f"
|
|
done
|
|
|
|
vlicense LICENSE
|
|
}
|