From 4141f5b04aab597f88a617a82649a404c773469a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 10 Nov 2011 23:14:50 +0000 Subject: Thu Nov 10 23:14:50 UTC 2011 --- extra/xfce4-weather-plugin/PKGBUILD | 44 +++++++++++++--------- .../xfce4-weather-plugin.install | 8 ++-- 2 files changed, 31 insertions(+), 21 deletions(-) (limited to 'extra/xfce4-weather-plugin') diff --git a/extra/xfce4-weather-plugin/PKGBUILD b/extra/xfce4-weather-plugin/PKGBUILD index fb57ce0f3..b5ac7d8f1 100644 --- a/extra/xfce4-weather-plugin/PKGBUILD +++ b/extra/xfce4-weather-plugin/PKGBUILD @@ -1,34 +1,44 @@ -# $Id: PKGBUILD 108785 2011-02-03 12:45:05Z andyrtr $ -# Maintainer: Andreas Radke +# $Id: PKGBUILD 142430 2011-11-09 18:10:30Z foutrelis $ +# Maintainer: Evangelos Foutras # Contributor: Suzy Williams pkgname=xfce4-weather-plugin pkgver=0.7.4 -pkgrel=1 +pkgrel=2 pkgdesc="A weather plugin for the Xfce4 panel" -arch=(i686 x86_64) -license=('GPL2') +arch=('i686' 'x86_64') url="http://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin" +license=('GPL2') groups=('xfce4-goodies') -depends=('xfce4-panel>=4.8.0' 'libxfcegui4' 'libxml2' 'hicolor-icon-theme') +depends=('xfce4-panel' 'libxfcegui4' 'libxml2' 'hicolor-icon-theme') makedepends=('intltool') options=('!libtool') -install=${pkgname}.install -source=(http://archive.xfce.org/src/panel-plugins/${pkgname}/0.7/${pkgname}-${pkgver}.tar.bz2) -md5sums=('03c972d13eba5cd226432ff66e3ff282') +install=$pkgname.install +source=(http://archive.xfce.org/src/panel-plugins/$pkgname/0.7/$pkgname-$pkgver.tar.bz2) +sha256sums=('3f76207b8a845d15bfec6825bd5300aedd086c455259c4dd8670a89a3c8ab382') build() { - cd ${srcdir}/${pkgname}-${pkgver} + cd "$srcdir/$pkgname-$pkgver" + + # Switch to a working license key + # https://bugs.archlinux.org/task/26815 + sed -i \ + -e 's/^#define PARTNER_ID.*/#define PARTNER_ID "1003666583"/' \ + -e 's/^#define LICENSE_KEY.*/#define LICENSE_KEY "4128909340a9b2fc"/' \ + panel-plugin/weather.h + ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --libexecdir=/usr/lib \ - --localstatedir=/var \ - --disable-static \ - --disable-debug + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug make } package() { - cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install } + +# vim:set ts=2 sw=2 et: diff --git a/extra/xfce4-weather-plugin/xfce4-weather-plugin.install b/extra/xfce4-weather-plugin/xfce4-weather-plugin.install index b0b7f29d1..e4f8fd06c 100644 --- a/extra/xfce4-weather-plugin/xfce4-weather-plugin.install +++ b/extra/xfce4-weather-plugin/xfce4-weather-plugin.install @@ -1,13 +1,13 @@ -#!/bin/sh - post_install() { gtk-update-icon-cache -q -t -f usr/share/icons/hicolor } post_upgrade() { - post_install $1 + post_install } post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + post_install } + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf