updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lshwd / PKGBUILD
blob3cfb412d0568bf52a33a1caa3c2356972a880d30
1 # Maintainer: kfgz <kfgz at interia dot pl>
2 # Contributor: Judd <jvinet at zeroflux dot org>
3 # Contributor: Elia Yehuda <z4ziggy at user-contributions dot org>
5 pkgname=lshwd
6 pkgver=1.1.3
7 pkgrel=6
8 pkgdesc="lists hardware and approp modules"
9 arch=('i686' 'x86_64')
10 url="http://user-contributions.org/projects/lshwd/"
11 license=('GPL')
12 depends=('pciutils' 'usbutils' 'libusb')
13 source=(http://user-contributions.org/projects/lshwd/source/${pkgname}-${pkgver}.tar.gz
14         lshwd-1.1.3-fixes.patch
15         hwd
16         Cards
17         pcitable
18         pcmciatable
19         usbtable)
20 md5sums=('493ae06aada341f0bde063aab3c4167f' '79d53c1d8bc4feedf847dc6048643bec'\
21          '42d52005cce7b05c528d07424313769e' 'bf672bb7288d67ec5bc1502390d810ca'\
22          '93099e0be779545b0b82b880293b7a7f' 'f0819596a4d9ee67c728f40c0a78d662'\
23          '244b6b223b42b36a22040cc1c453509c')
25 build() {
26   cd ${srcdir}/${pkgname}-${pkgver}
27   patch -Np1 -i ${srcdir}/lshwd-1.1.3-fixes.patch
28   cp ${srcdir}/Cards .
29   cp ${srcdir}/{pci,pcmcia,usb}table .
30   make
33 package() {
34   cd ${srcdir}
35   install -D -m755 hwd ${pkgdir}/etc/rc.d/hwd
36   install -D -m755 ${srcdir}/${pkgname}-${pkgver}/lshwd ${pkgdir}/usr/bin/lshwd
37   install -D -m644 pcitable ${pkgdir}/usr/share/hwdata/pcitable
38   install -D -m644 usbtable ${pkgdir}/usr/share/hwdata/usbtable
39   install -D -m644 pcmciatable ${pkgdir}/usr/share/hwdata/pcmciatable
40   install -D -m644 Cards ${pkgdir}/usr/share/hwdata/Cards
43 # for latest table/Cards files checkout hwd site :
44 # http://user-contributions.org/projects/lshwd/tables/