PKGBUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
  2. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  3. pkgname=sensors-applet
  4. pkgver=3.0.0+13+g0728426
  5. pkgrel=2
  6. pkgrel+=.parabola1
  7. pkgdesc="Applet for GNOME Panel to display readings from hardware sensors, including CPU temperature, fan speeds and voltage readings"
  8. pkgdesc+=", without nonfree libxnvctrl support"
  9. arch=('x86_64')
  10. arch+=('i686' 'armv7h')
  11. url="http://sensors-applet.sourceforge.net/"
  12. license=('GPL')
  13. depends=('gnome-panel' 'libatasmart' 'lm_sensors')
  14. makedepends=('git' 'gnome-common' 'intltool' 'yelp-tools')
  15. optdepends=('hddtemp: get HDD temperatures')
  16. _commit=07284262768e3a7066da09845370d78526be6bc1 # master
  17. source=("$pkgname::git+https://git.code.sf.net/p/sensors-applet/code#commit=$_commit")
  18. sha256sums=('SKIP')
  19. pkgver() {
  20. cd $pkgname
  21. git describe --tags | sed 's/-/+/g'
  22. }
  23. prepare() {
  24. cd $pkgname
  25. NOCONFIGURE=1 ./autogen.sh
  26. }
  27. build() {
  28. cd $pkgname
  29. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname
  30. #https://bugzilla.gnome.org/show_bug.cgi?id=656231
  31. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  32. make
  33. }
  34. package() {
  35. cd $pkgname
  36. make DESTDIR="$pkgdir" install
  37. }