diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-02-28 12:05:35 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-02-28 12:05:35 +0100 |
commit | 7cd4823a20b85a5e516ae51fc04a4d1b72b5d0b9 (patch) | |
tree | 31c86c3a5284a8b8a7f1720d27ce9e5dbf09fee4 /extra/xfce4-sensors-plugin | |
parent | d17a0ec458b03b0ed38eff13d399567f36156a73 (diff) | |
parent | 1f567a9d58d16b76320168f0624aa55bd6320284 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/cairo-clock/PKGBUILD
community/flashrom/PKGBUILD
community/kmess/PKGBUILD
core/tzdata/PKGBUILD
extra/gc/PKGBUILD
extra/libsigc++/PKGBUILD
extra/libxcomposite/PKGBUILD
extra/libxdmcp/PKGBUILD
extra/libxevie/PKGBUILD
extra/libxext/PKGBUILD
extra/libxinerama/PKGBUILD
extra/libxkbfile/PKGBUILD
extra/libxpm/PKGBUILD
extra/libxres/PKGBUILD
extra/libxss/PKGBUILD
extra/libxt/PKGBUILD
extra/libxtst/PKGBUILD
extra/libxv/PKGBUILD
extra/libxvmc/PKGBUILD
extra/llvm/PKGBUILD
extra/pdns-recursor/PKGBUILD
extra/pdns/PKGBUILD
extra/procmail/PKGBUILD
extra/ptlib/PKGBUILD
extra/pycrypto/PKGBUILD
extra/pyorbit/PKGBUILD
extra/vlc/PKGBUILD
extra/xfce4-battery-plugin/PKGBUILD
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: |