# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Weather forecast script with support for language files, for use in Conky" HOMEPAGE="https://launchpad.net/~conkyhardcore" SRC_URI="https://launchpad.net/~conkyhardcore/+archive/ppa/+files/conkyforecast_${PV}.tar.gz" LICENSE="GPLv3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="app-admin/conky" RDEPEND="" src_unpack() { unpack ${A} } src_install() { cd $WORKDIR mkdir -p $D/usr/bin cp src/conkyForecast $D/usr/bin/ chmod +x $D/usr/bin/conkyForecast conkyPath=$D/usr/share/conkyforecast mkdir -p $conkyPath cp src/conkyForecast.py $conkyPath cp src/conkyForecast.pot $conkyPath cp src/conkyForecast.config $conkyPath cp -R src/locale $conkyPath/ # Set up fonts conkyFontPath=$D/usr/share/fonts/truetype/conkyforecast/ mkdir -p $conkyFontPath cp src/fonts/* $conkyFontPath dodoc src/README src/AUTHORS src/COPYING } pkg_postinst() { elog "For a working script you must define, in a user specific config" elog "file, a partner id and registration code for the weather.com xoap" elog "service. For this purpose the config file should be copied" elog "to \"~/.conkyForecast.config\" and setup as required." elog "" elog "To copy and edit the config, using the command line, run:" elog "cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config" elog "" elog "More details about the soap service can be found in the README file." }