updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hcfpcimodem / PKGBUILD
blob0e7faac1e1b0ec727c88adb0978d466ff1c8ba2a
1 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
3 pkgname=hcfpcimodem
4 pkgver=1.20full
5 pkgrel=1
6 pkgdesc="Linux drivers for the Conexant HCF Softmodem family (kernel modules)"
7 arch=('i686')
8 url="http://www.linuxant.com/drivers/hcf/"
9 license=('GPL' 'custom')
10 depends=("hcfpcimodem-utils>=$pkgver" 'kernel26>=2.6.32.3' 'kernel26<2.6.33')
11 makedepends=('kernel26-headers>=2.6.32' 'kernel26-headers<2.6.33')
12 install=hcfpcimodem.install
13 source=(http://www.linuxant.com/drivers/hcf/full/archive/hcfpcimodem-${pkgver}/hcfpcimodem-${pkgver}.tar.gz)
14 md5sums=('808b7b879a513205485ec7c903f1a35d')
16 build() {
17   cd "${srcdir}/${pkgname}-${pkgver}/modules"
19   make CNXT_MODS_DIR=$pkgdir/lib/modules/$(uname -r)/extra modules_install || return 1
20   make CNXTLIBDIR=$pkgdir/usr/lib/hcfpcimodem CNXT_MODS_DIR=$pkgdir/lib/modules/$(uname -r)/extra modules_install
22   sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/hcfpcimodem.install