talimat 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Tanım: METAR verilerinden hava durumu tahminlerini gösteren CLI aracı
  2. # URL: http://fungi.yuggoth.org/weather/
  3. # Paketçi: milisarge
  4. # Gerekler: python
  5. # Grup: bilim
  6. isim=weather
  7. surum=2.0
  8. devir=1
  9. kaynak=(http://fungi.yuggoth.org/weather/src/$isim-$surum.tar.gz)
  10. derle() {
  11. cd "$isim-$surum"
  12. sed -i 's|env python|env python2|' *
  13. # set up correlation sets
  14. sed -i 's| else: default_setpath = ".:~/.weather|&:/usr/share/weather-util|' weather.py
  15. install -Dm644 airports "$PKG/usr/share/weather-util/airports"
  16. install -Dm644 places "$PKG/usr/share/weather-util/places"
  17. install -Dm644 stations "$PKG/usr/share/weather-util/stations"
  18. install -Dm644 zctas "$PKG/usr/share/weather-util/zctas"
  19. install -Dm644 zones "$PKG/usr/share/weather-util/zones"
  20. _python_path=$(python2 -c "import sys ; print [p for p in sys.path if p.startswith('/usr/lib/python2.')][0]")
  21. install -Dm755 weather "$PKG/usr/bin/weather-report"
  22. install -Dm644 weather.py "$PKG/$_python_path/weather.py"
  23. install -Dm644 weatherrc "$PKG/etc/weatherrc"
  24. install -Dm644 weather.1 "$PKG/usr/share/man/man1/weather.1"
  25. install -Dm644 weatherrc.5 "$PKG/usr/share/man/man5/weatherrc.5"
  26. install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/BSD2"
  27. }