updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / lshw-gtk / PKGBUILD
blob92a1d313543d38186aaed4f3b748926d34991560
1 # Maintainer: Can Celasun <dcelasun@gmail.com>
2 pkgname=lshw-gtk
3 pkgver=B.02.15
4 pkgrel=1
5 pkgdesc="Hardware lister application with CLI and GTK interfaces."
6 url="http://ezix.org/project/wiki/HardwareLiSter"
7 license="GPL"
8 arch=(i686 x86_64)
9 depends=('gtk2' 'libglade' 'gksu')
10 provides=('lshw')
11 conflicts=('lshw')
12 source=(http://ezix.org/software/files/lshw-${pkgver}.tar.gz
13                 lshw-gtk.desktop
14                 lshw-gtk.xpm)
15 md5sums=('970bd9eb05fa3ae139a24a417465c54c' 'f7e7551c68598782c5251475dea47130' '5ea8cd43ff46b810e8250b7a94ceec17')
17 build() {
19     cd "$srcdir/lshw-${pkgver}"
20     
21         msg "Starting make..."
22     make || return 1
23     make DESTDIR=$pkgdir install
25     # requires glade-2
26     make gui || return 1
27     make DESTDIR=$pkgdir install-gui
28     
29     # Place the desktop file and logo
30     mkdir $pkgdir/usr/share/applications
31     mkdir $pkgdir/usr/share/pixmaps
32     cp $srcdir/lshw-gtk.desktop $pkgdir/usr/share/applications
33     cp $srcdir/lshw-gtk.xpm $pkgdir/usr/share/pixmaps
34     
35     # Default gui is gtk-lshw, change that to lshw-gtk for better naming convention
36     mv $pkgdir/usr/sbin/gtk-lshw $pkgdir/usr/sbin/lshw-gtk
37