1 # Maintainer: TDY <tdy@gmx.com>
2 # Contributor: Paulo Freire <paulofreire gmail com>
7 pkgdesc="AUTOmagical KERNel CONFiguration via the Linux Kernel Driver Database (LKDDb)"
9 url="http://cateee.net/autokernconf/"
11 depends=('coreutils' 'grep' 'sed' 'which')
12 optdepends=('pciutils: for pci.ids data'
13 'util-linux-ng: for dmesg support')
14 install=$pkgname.install
15 source=(http://cateee.net/sources/$pkgname/$pkgname-${pkgver//./-}.tar.gz
16 http://cateee.net/sources/lkddb/lkddb-${pkgver//./-}.tar.gz)
17 md5sums=('e99cb86099508b968405f493cba56382'
18 '4364bf0a0c65d6b9dddfbc171a395a79')
21 cd "$srcdir/$pkgname-${pkgver//./-}"
22 sed -i 's,s\(bin/lsmod\),\1,' kdetect.sh
23 sed -i "s,lkddb\.list,/usr/share/$pkgname/&," $pkgname.sh
24 install -Dm755 kdetect.sh "$pkgdir/usr/bin/kdetect"
25 install -Dm755 $pkgname.sh "$pkgdir/usr/bin/$pkgname"
26 install -Dm755 ../lkddb-${pkgver//./-}/lkddb.list \
27 "$pkgdir/usr/share/$pkgname/lkddb.list"