summaryrefslogtreecommitdiff
path: root/extra/xfce4-sensors-plugin/PKGBUILD
blob: 39b1c6e9cc1f0499ccf53baf964657271f47ceac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 123665 2011-05-12 08:18:26Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Merk Matthias <macem@chello.at>

pkgname=xfce4-sensors-plugin
pkgver=1.2.1
pkgrel=1
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
	git.patch)
md5sums=('3fd270762d69eb281594bdf16be924b9'
         '181df53dc5bb647274293f72f73ef39b')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  # panel 4.8 patch from http://bugzilla.xfce.org/show_bug.cgi?id=7095
#  patch -Np1 -i ${srcdir}/xfce4-sensors-plugin-1.0.0-underlink.patch

#  patch -Np1 -i ${srcdir}/xfce4-sensors-plugin-1.0.0-libnotify-0.7.patch
  patch -Np1 -i ${srcdir}/git.patch
  #xdt-autogen
  ./configure --prefix=/usr \
	--sysconfdir=/etc \
	--libexecdir=/usr/lib \
	--localstatedir=/var \
	--disable-static \
	--with-pathhddtemp=/usr/sbin/hddtemp \
	--disable-debug
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
}