summaryrefslogtreecommitdiff
path: root/extra/xfce4-weather-plugin
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-10 23:14:50 +0000
committerroot <root@rshg054.dnsready.net>2011-11-10 23:14:50 +0000
commit4141f5b04aab597f88a617a82649a404c773469a (patch)
treeb293827df78bf1e9b7059db63c04c3f7ab854ae6 /extra/xfce4-weather-plugin
parent7b0cdd65ac7bcd3c7597b528a10de58e4e0a430f (diff)
Thu Nov 10 23:14:50 UTC 2011
Diffstat (limited to 'extra/xfce4-weather-plugin')
-rw-r--r--extra/xfce4-weather-plugin/PKGBUILD44
-rw-r--r--extra/xfce4-weather-plugin/xfce4-weather-plugin.install8
2 files changed, 31 insertions, 21 deletions
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 <andyrtr@archlinux.org>
+# $Id: PKGBUILD 142430 2011-11-09 18:10:30Z foutrelis $
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Suzy Williams <suzanne.williams3@verizon.net>
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: