PKGBUILDs/community/sensors-applet/PKGBUILD

41 lines
1.1 KiB
Bash
Raw Normal View History

2016-08-07 22:05:08 +00:00
# $Id$
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - drop dependency on libxnvctrl (nvidia-settings)
pkgname=sensors-applet
pkgver=3.0.0
2016-08-12 12:29:16 +00:00
_gitrev=07284262768e3a7066da09845370d78526be6bc1
pkgrel=8
2016-08-07 22:05:08 +00:00
pkgdesc="Applet for GNOME Panel to display readings from hardware sensors, including CPU temperature, fan speeds and voltage readings"
arch=('i686' 'x86_64')
url="http://sensors-applet.sourceforge.net/"
license=('GPL')
depends=('gnome-panel' 'libatasmart' 'lm_sensors')
2016-08-12 12:29:16 +00:00
makedepends=('git' 'gnome-common' 'intltool' 'yelp-tools')
2016-08-07 22:05:08 +00:00
optdepends=('hddtemp: get HDD temperatures'
'udisks: get HDD temperatures')
2016-08-12 12:29:16 +00:00
source=($pkgname::git://git.code.sf.net/p/sensors-applet/code#commit=$_gitrev)
sha256sums=('SKIP')
2016-08-07 22:05:08 +00:00
prepare() {
2016-08-12 12:29:16 +00:00
cd $pkgname
2016-08-07 22:05:08 +00:00
NOCONFIGURE=1 ./autogen.sh
}
build() {
2016-08-12 12:29:16 +00:00
cd $pkgname
2016-08-07 22:05:08 +00:00
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname
2016-08-12 12:29:16 +00:00
#https://bugzilla.gnome.org/show_bug.cgi?id=656231
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2016-08-07 22:05:08 +00:00
make
}
package() {
2016-08-12 12:29:16 +00:00
cd $pkgname
2016-08-07 22:05:08 +00:00
make DESTDIR="$pkgdir" install
}