diff options
Diffstat (limited to 'extra/xfce4-sensors-plugin')
-rw-r--r-- | extra/xfce4-sensors-plugin/PKGBUILD | 49 | ||||
-rw-r--r-- | extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install | 20 |
2 files changed, 45 insertions, 24 deletions
diff --git a/extra/xfce4-sensors-plugin/PKGBUILD b/extra/xfce4-sensors-plugin/PKGBUILD index 4bd861145..831bac135 100644 --- a/extra/xfce4-sensors-plugin/PKGBUILD +++ b/extra/xfce4-sensors-plugin/PKGBUILD @@ -1,38 +1,45 @@ -# $Id: PKGBUILD 148978 2012-02-05 11:58:42Z ibiru $ +# $Id: PKGBUILD 151507 2012-02-26 21:47:29Z foutrelis $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> # Contributor: Merk Matthias <macem@chello.at> pkgname=xfce4-sensors-plugin pkgver=1.2.3 -pkgrel=3 +pkgrel=4 pkgdesc="A lm_sensors plugin for the Xfce panel" arch=('i686' 'x86_64' 'mips64el') license=('GPL2') url="http://goodies.xfce.org/projects/panel-plugins/xfce4-sensors-plugin" groups=('xfce4-goodies') -depends=('xfce4-panel' 'lm_sensors' 'libnotify>=0.7.1' 'hicolor-icon-theme') #'libxfcegui4' -makedepends=('pkgconfig' 'intltool' 'hddtemp>=0.3.beta15.45-2' 'gnu-netcat' 'xfce4-dev-tools') -optdepends=('gnu-netcat: for hddtemp access') -options=(!libtool !makeflags) -install=${pkgname}.install -source=(http://archive.xfce.org/src/panel-plugins/${pkgname}/1.2/${pkgname}-${pkgver}.tar.bz2) -md5sums=('2edf376d140449ca42c4e4f591e626f8') +depends=('xfce4-panel' 'lm_sensors' 'libnotify' 'hddtemp' 'hicolor-icon-theme') +makedepends=('intltool' 'gnu-netcat') +options=('!libtool') +install=$pkgname.install +source=(http://archive.xfce.org/src/panel-plugins/$pkgname/1.2/$pkgname-$pkgver.tar.bz2) +sha256sums=('3dd27348f7b38b55e53aa8d851cdb80e090b8830ca9e705bf32641679f08d326') build() { - cd ${srcdir}/${pkgname}-${pkgver} - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --libexecdir=/usr/lib \ - --localstatedir=/var \ - --datadir=/usr/share \ - --datarootdir=/usr/share \ - --disable-static \ - --with-pathhddtemp=/usr/sbin/hddtemp \ - --disable-debug + cd "$srcdir/$pkgname-$pkgver" + + # Satisfy the check that hddtemp is queryable via netcat + # (https://bugs.archlinux.org/task/28275) + echo ohai | nc -l -p 7634 -s localhost -c & + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --datadir=/usr/share \ + --datarootdir=/usr/share \ + --disable-static \ + --with-pathhddtemp=/usr/sbin/hddtemp \ + --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-sensors-plugin/xfce4-sensors-plugin.install b/extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install index 17ca8f78a..ef6375367 100644 --- a/extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install +++ b/extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install @@ -1,11 +1,25 @@ -post_install() { +post_common() { gtk-update-icon-cache -q -t -f usr/share/icons/hicolor } +post_install() { + post_common + + echo '> Make sure the hddtemp daemon is running, otherwise xfce4-sensors will' + echo '> crash on start.' +} + post_upgrade() { - post_install $1 + post_common + + if (($(vercmp $2 1.2.3-4) < 0)); then + echo '> Make sure the hddtemp daemon is running, otherwise xfce4-sensors will' + echo '> crash on start.' + fi } post_remove() { - post_install $1 + post_common } + +# vim:set ts=2 sw=2 et: |