2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: METAR verilerinden hava durumu tahminlerini gösteren CLI aracı
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://fungi.yuggoth.org/weather/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: python
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=weather
|
|
|
|
|
surum=2.0
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
kaynak=(http://fungi.yuggoth.org/weather/src/$isim-$surum.tar.gz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd "$isim-$surum"
|
2016-02-24 01:27:23 +01:00
|
|
|
|
sed -i 's|env python|env python2|' *
|
|
|
|
|
|
|
|
|
|
# set up correlation sets
|
|
|
|
|
sed -i 's| else: default_setpath = ".:~/.weather|&:/usr/share/weather-util|' weather.py
|
|
|
|
|
|
|
|
|
|
install -Dm644 airports "$PKG/usr/share/weather-util/airports"
|
|
|
|
|
install -Dm644 places "$PKG/usr/share/weather-util/places"
|
|
|
|
|
install -Dm644 stations "$PKG/usr/share/weather-util/stations"
|
|
|
|
|
install -Dm644 zctas "$PKG/usr/share/weather-util/zctas"
|
|
|
|
|
install -Dm644 zones "$PKG/usr/share/weather-util/zones"
|
|
|
|
|
|
|
|
|
|
_python_path=$(python2 -c "import sys ; print [p for p in sys.path if p.startswith('/usr/lib/python2.')][0]")
|
|
|
|
|
install -Dm755 weather "$PKG/usr/bin/weather-report"
|
|
|
|
|
install -Dm644 weather.py "$PKG/$_python_path/weather.py"
|
|
|
|
|
|
|
|
|
|
install -Dm644 weatherrc "$PKG/etc/weatherrc"
|
|
|
|
|
|
|
|
|
|
install -Dm644 weather.1 "$PKG/usr/share/man/man1/weather.1"
|
|
|
|
|
install -Dm644 weatherrc.5 "$PKG/usr/share/man/man5/weatherrc.5"
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/BSD2"
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|