diff --git a/srcpkgs/gnome-shell-extension-weather/template b/srcpkgs/gnome-shell-extension-weather/template index 2483d672a07..2407e99e0fa 100644 --- a/srcpkgs/gnome-shell-extension-weather/template +++ b/srcpkgs/gnome-shell-extension-weather/template @@ -2,8 +2,11 @@ pkgname=gnome-shell-extension-weather version="$(date -u +%Y%m%d)" build_style=gnu-configure -depends="gnome-shell-extensions>=3.2.0" -makedepends="automake pkg-config intltool gettext-devel glib-devel gnome-common git" +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" short_desc="Simple extension for displaying weather notifications in GNOME Shell." maintainer="davehome " homepage="https://github.com/simon04/gnome-shell-extension-weather" @@ -15,28 +18,20 @@ long_desc=" Currently, the weather report including forecast for today and tomorrow is fetched from Yahoo! Weather." -noarch=yes -nofetch=yes -noextract=yes - - -do_fetch() -{ +do_fetch() { local url="git://github.com/simon04/${pkgname}.git" msg_normal " Fetching source from $url ...\n" git clone -b gnome3.4 $url ${pkgname}-${version} } -pre_configure() -{ - gnome-autogen.sh +pre_configure() { + ./autogen.sh } -post_install() -{ +post_install() { local _ext_dir=weather\@gnome-shell-extensions.gnome.org - cp ${wrksrc}/weather-extension-configurator.py \ + cp weather-extension-configurator.py \ ${DESTDIR}/usr/share/gnome-shell/extensions/${_ext_dir}/ mkdir -p ${DESTDIR}/usr/bin && cd ${DESTDIR}/usr/bin && \