blob: 92a71dcf7a580741fd934ac56bc438efaaf86211 (
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
45
46
47
48
49
50
51
52
|
# Maintainer : Brian Bidulock <bidulock@openss7.org>
# Contributor : Laurent Carlier <lordheavym@gmail.com>
# Contributor: Ray Rashif <schivmeister@gmail.com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=xsensors-gtk2
_pkgname=xsensors
pkgver=0.80
pkgrel=2
pkgdesc="X11 interface to lm_sensors (gtk2)"
arch=('x86_64' 'i686')
url="http://www.linuxhardware.org/xsensors/"
license=('GPL')
depends=('gtk2' 'lm_sensors')
provides=("$_pkgname=$pkgver-$pkgrel")
conflicts=("$_pkgname")
makedepends=('imagemagick' 'gendesk')
changelog=$_pkgname.changelog
#source=(http://www.linuxhardware.org/xsensors/$_pkgname-$pkgver.tar.gz
source=(https://github.com/Mystro256/xsensors/archive/$pkgver.tar.gz
remove-unused-variables.patch
replace-deprecated-gtk.patch)
sha512sums=('e1ac7107b978bf9b392b0ecb13e49f49c8efebb228a9c6781a519b128f467d0346d35632646f20a036fdc34ea3ee86440c7be5a3285d922f8afbf051e9cfdcc8'
'ec81d48f16fb0b9b425247e3e2c56ef6f71acb8da5228bc72438aa33da86e2beb8d4d88c6e1ea8aa95e9db4b19a8939410b6693be61eba4e469686e20108adff'
'008ea330c74b7f373cd637e3fc57e8ce2a9e8271f517d569be251c86f87593db081622b6df3f2970b741f407d51f4f348fe0dc102927d7289b0309288c3a70f6')
build() {
cd "$srcdir"
gendesk -n --pkgname "$_pkgname" --genericname="Hardware Monitor" \
--comment="View hardware health" --categories="System;Monitor;GTK"
cd "$_pkgname-$pkgver"
# # patches from debian
# patch -Np1 -i ${srcdir}/remove-unused-variables.patch
# patch -Np1 -i ${srcdir}/replace-deprecated-gtk.patch
./configure --prefix=/usr
make
}
package() {
cd ${srcdir}/$_pkgname-$pkgver
make DESTDIR="${pkgdir}" install
# convert +set date:create +set date:modify "$pkgdir/usr/share/pixmaps/xsensors/default.xpm" \
# "$pkgdir/usr/share/pixmaps/xsensors.png"
install -Dm644 "$srcdir/xsensors.desktop" \
"$pkgdir/usr/share/applications/xsensors.desktop"
}
|