1 #Maintainer: Jarek <jarek at eden.rutgers.edu>
6 pkgdesc="downloads the weather report for a given station ID, decodes it and the provides easy access to all the data found in the report"
8 url="http://www.schwarzvogel.de/software-pymetar.shtml"
10 depends=('python2>=2.7' )
11 source=("http://www.schwarzvogel.de/pkgs/$pkgname-$pkgver.tar.gz")
14 cd "${srcdir}/${pkgname}-${pkgver}"
16 python2 setup.py build || return 1
17 install -m0755 -d ${pkgdir}/usr/{bin,lib/python2.7/site-packages,share/${pkgname}} || return 1
18 chmod 0755 ${pkgdir}/usr/bin/
20 install -m0644 -D PKG-INFO ${pkgdir}/usr/lib/python2.7/site-packages/${pkgname}-${pkgver}-py2.6.egg-info
21 install -m0644 -D build/lib/pymetar.py ${pkgdir}/usr/lib/python2.7/site-packages/
22 install -m0644 -D README librarydoc.txt ${pkgdir}/usr/share/${pkgname}
23 sed -i 's/\/usr\/bin\/python -tt/\/usr\/bin\/env python2/' bin/pymetar
24 install -m0755 -D bin/pymetar $pkgdir/usr/bin/
27 # vim:set ts=2 sw=2 et:
28 md5sums=('c02450ee386da5788b37e0114150c59a')