diff options
author | biell | 2016-11-29 19:16:53 -0500 |
---|---|---|
committer | biell | 2016-11-29 19:16:53 -0500 |
commit | 344e755ef63c783ea1a18085b8549934bf6bb053 (patch) | |
tree | 28134f3d53cd99bf8deb19a5b17e8a00eb4e7c95 | |
parent | e544b6622318fcf1f1bfa67de9d6682653b0b9a3 (diff) | |
download | aur-344e755ef63c783ea1a18085b8549934bf6bb053.tar.gz |
updated weather source
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 11 insertions, 5 deletions
@@ -1,9 +1,7 @@ -# Generated by mksrcinfo v8 -# Wed Dec 30 05:07:29 UTC 2015 pkgbase = gkrellweather pkgdesc = A weather monitor plugin for gkrellm2 pkgver = 2.0.8 - pkgrel = 3 + pkgrel = 4 url = https://sites.google.com/site/makovick/gkrellm-plugins arch = i686 arch = x86_64 @@ -4,7 +4,7 @@ pkgname=gkrellweather pkgver=2.0.8 -pkgrel=3 +pkgrel=4 pkgdesc="A weather monitor plugin for gkrellm2" arch=('i686' 'x86_64') depends=('gkrellm' 'perl' 'wget' 'gtk2') @@ -13,11 +13,19 @@ url="https://sites.google.com/site/makovick/gkrellm-plugins" source=("${pkgname}-${pkgver}.tgz::https://sites.google.com/site/makovick/projects/${pkgname}-${pkgver}.tgz?attredirects=0") md5sums=('b21ed55cc9998eb7307ec53e99f9beea') -build() { +prepare() { cd $pkgname-$pkgver + old_url='http://weather.noaa.gov/pub/data/observations/metar/decoded' + new_url='http://tgftp.nws.noaa.gov/data/observations/metar/decoded/' + sed -i -e 's|/usr/local|/usr|' Makefile sed -i -e 's|PREFIX|"/usr/share/gkrellm"|' gkrellweather.c sed -i -e 's|/bin/GrabWeather|/GrabWeather|' gkrellweather.c + sed -i -e "s|WeatherSrc = '$old_url'|WeatherSrc = '$new_url'|" GrabWeather +} + +build() { + cd $pkgname-$pkgver make } |