2011-10-14 11:04:07 +02:00
|
|
|
# Template file for 'gnome-shell-extension-weather'
|
|
|
|
pkgname=gnome-shell-extension-weather
|
2011-10-21 10:12:42 +02:00
|
|
|
version="$(date -u +%Y%m%d)"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-10-14 11:04:07 +02: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 13:34:12 +02:00
|
|
|
|
|
|
|
noarch=yes
|
2011-10-14 11:04:07 +02:00
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
|
|
|
|
2011-10-14 13:34:12 +02:00
|
|
|
Add_dependency run gnome-shell-extensions ">=3.2.0"
|
2011-10-14 11:04:07 +02:00
|
|
|
Add_dependency build automake
|
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build intltool
|
2012-03-04 02:26:05 +01:00
|
|
|
Add_dependency build gettext-devel
|
2011-10-14 12:59:09 +02:00
|
|
|
Add_dependency build glib-devel
|
2011-10-14 11:04:07 +02:00
|
|
|
Add_dependency build gnome-common
|
|
|
|
Add_dependency build git
|
|
|
|
|
|
|
|
do_fetch()
|
|
|
|
{
|
|
|
|
local url="git://github.com/simon04/${pkgname}.git"
|
|
|
|
msg_normal " Fetching source from $url ...\n"
|
2012-04-09 23:54:03 +02:00
|
|
|
git clone -b gnome3.4 $url ${pkgname}-${version}
|
2011-10-14 11:04:07 +02:00
|
|
|
}
|
|
|
|
|
2011-10-14 12:59:09 +02:00
|
|
|
pre_configure()
|
2011-10-14 11:04:07 +02:00
|
|
|
{
|
2011-10-14 12:59:09 +02:00
|
|
|
gnome-autogen.sh
|
2011-10-14 11:04:07 +02:00
|
|
|
}
|
2012-01-19 19:15:20 +01:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
local _ext_dir=weather\@gnome-shell-extensions.gnome.org
|
|
|
|
|
|
|
|
cp ${wrksrc}/weather-extension-configurator.py \
|
|
|
|
${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
|
|
|
|
}
|