summaryrefslogtreecommitdiff
path: root/libre/hardinfo/PKGBUILD
blob: 47f4c1330cdee13f42dfbb596d48a29f0e9b944b (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
# $Id$
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=hardinfo
pkgver=0.5.1
pkgrel=4
pkgdesc="A system information and benchmark tool."
arch=('i686' 'x86_64')
url="http://hardinfo.berlios.de/wiki/index.php/Main_Page"
license=('GPL2')
depends=('gtk2' 'libsoup')
options=('!emptydirs')
source=(http://download.berlios.de/hardinfo/${pkgname}-${pkgver}.tar.bz2 \
        fixsensors.patch hardinfo.distro)
md5sums=('6fb38992e140f2fab16518ae1f38e188'
         '05c212db07b9f152cdea052ff7bb28fa'
         '2c609f4b3c7f202d043bdef082c2bef0')
sha1sums=('983f0445aa60e02156bc5a5eaedeffb30b8e4d64'
          'd2151dce76dca238102937d0e15541f172bca530'
          '9425e09191cd3a365a3afce57ca1973a6439fa57')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p1 < ../fixsensors.patch
  sed -i 's|/usr/lib64|/usr/lib|' configure
  ./configure --prefix=/usr
  sed -i 's|lib64|lib|' binreloc.c
  sed -i 's|/sbin/lsmod|/bin/lsmod|g' arch/linux/{parisc,ppc,m68k,x86,common,mips,sparc,x86_64}/modules.h
  sed -i 's|/sbin/lsmod|/bin/lsmod|g' arch/this/modules.h
  sed -i 's|{ DB_PREFIX "debian_version",	"deb"  },|{ DB_PREFIX "hardinfo.distro",       "parabola"  },{ DB_PREFIX "debian_version",	"deb"  },|' computer.h 
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -D -m644 ../hardinfo.distro "${pkgdir}/etc/hardinfo.distro"
}