#Maintainer: Shador pkgname=conkyforecast pkgver=2.09 pkgrel=1ab arch=i486 source=("https://launchpad.net/~m-buck/+archive/conky/+files/conkyforecast_${pkgver}.tar.gz") sourcetemplate="http://gaia.homelinux.org/salix/packages/$pkgname/$pkgver/" docs=("copying" "changelog" "authors") url='https://code.launchpad.net/~m-buck/+junk/conkyforecast' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (provides weather forecast information for conky)" "conkyForecast is a python script created to provide weather forecast" "information to be displayed in Conky. It uses the Weather.com XOAP" "service to retrieve data for all over the world." ) build() { cd $startdir/src/src python setup.py install --prefix=/usr --root=$startdir/pkg || return 1 chmod 644 $startdir/pkg/usr/share/conkyforecast/locale/de/LC_MESSAGES/conkyForecast.{po,mo} install -vD -m 644 README $startdir/pkg/usr/doc/$pkgname-$pkgver/README mv $startdir/pkg/usr/share/fonts/truetype $startdir/pkg/usr/share/fonts/TTF } doinst() { # Update mkfontscale and mkfontdir: if [ -x usr/bin/mkfontdir ]; then ( cd usr/share/fonts/TTF/ mkfontscale . mkfontdir . ) fi # Update the X font indexes: if [ -x usr/bin/fc-cache ]; then usr/bin/fc-cache -f 1>/dev/null 2>&1 fi }