2011-10-14 09:04:07 +00:00
|
|
|
# Template file for 'gnome-shell-extension-weather'
|
|
|
|
pkgname=gnome-shell-extension-weather
|
2011-10-21 08:12:42 +00:00
|
|
|
version="$(date -u +%Y%m%d)"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-05-31 12:51:42 +00:00
|
|
|
noarch=yes
|
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
|
|
|
depends="gnome-shell>=3.4"
|
|
|
|
makedepends="which gnome-common>=3.4.0.1 pkg-config intltool gettext-devel glib-devel git"
|
2012-06-03 07:08:53 +00:00
|
|
|
revision=1
|
2011-10-14 09:04:07 +00:00
|
|
|
short_desc="Simple extension for displaying weather notifications in GNOME Shell."
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
|
|
homepage="https://github.com/simon04/gnome-shell-extension-weather"
|
|
|
|
license="GPL-3"
|
|
|
|
long_desc="
|
|
|
|
gnome-shell-extension-weather is a simple extension for displaying weather
|
|
|
|
notifications in GNOME Shell.
|
|
|
|
|
|
|
|
Currently, the weather report including forecast for today and tomorrow is
|
|
|
|
fetched from Yahoo! Weather."
|
2011-10-14 11:34:12 +00:00
|
|
|
|
2012-05-31 12:51:42 +00:00
|
|
|
do_fetch() {
|
2011-10-14 09:04:07 +00:00
|
|
|
local url="git://github.com/simon04/${pkgname}.git"
|
|
|
|
msg_normal " Fetching source from $url ...\n"
|
2012-04-09 21:54:03 +00:00
|
|
|
git clone -b gnome3.4 $url ${pkgname}-${version}
|
2011-10-14 09:04:07 +00:00
|
|
|
}
|
|
|
|
|
2012-05-31 12:51:42 +00:00
|
|
|
pre_configure() {
|
|
|
|
./autogen.sh
|
2011-10-14 09:04:07 +00:00
|
|
|
}
|
2012-01-19 18:15:20 +00:00
|
|
|
|
2012-05-31 12:51:42 +00:00
|
|
|
post_install() {
|
2012-01-19 18:15:20 +00:00
|
|
|
local _ext_dir=weather\@gnome-shell-extensions.gnome.org
|
|
|
|
|
2012-05-31 12:51:42 +00:00
|
|
|
cp weather-extension-configurator.py \
|
2012-01-19 18:15:20 +00:00
|
|
|
${DESTDIR}/usr/share/gnome-shell/extensions/${_ext_dir}/
|
|
|
|
|
|
|
|
mkdir -p ${DESTDIR}/usr/bin && cd ${DESTDIR}/usr/bin && \
|
|
|
|
ln -s ../share/gnome-shell/extensions/${_ext_dir}/weather-extension-configurator.py \
|
|
|
|
weather-extension-configurator
|
|
|
|
}
|