updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / autokernconf / PKGBUILD
blob8a89b85c1d4c21c1d7b7115ef6ae7f67333843d2
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: Paulo Freire <paulofreire gmail com>
4 pkgname=autokernconf
5 pkgver=2011.02.22
6 pkgrel=1
7 pkgdesc="AUTOmagical KERNel CONFiguration via the Linux Kernel Driver Database (LKDDb)"
8 arch=('any')
9 url="http://cateee.net/autokernconf/"
10 license=('GPL')
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')
20 build() {
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"