commit
86ba26bacd
1 changed files with 40 additions and 0 deletions
40
srcpkgs/weather/template
Normal file
40
srcpkgs/weather/template
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Template file for 'weather'
|
||||
pkgname=weather
|
||||
version=2.0
|
||||
revision=1
|
||||
noarch=yes
|
||||
hostmakedepends="python-devel"
|
||||
makedepends="python-devel"
|
||||
depends="python"
|
||||
pycompile_module="weather.py"
|
||||
short_desc="A 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=807aff002d31cd81aeaae096981c28900323c405b8f7d36625d9c7e48719347a
|
||||
|
||||
do_install() {
|
||||
vbin weather
|
||||
# note: upstream supports both python2 and python3
|
||||
vinstall weather.py 644 usr/lib/python2.7/site-packages
|
||||
|
||||
# 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
|
||||
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
Loading…
Reference in a new issue