1 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
6 pkgdesc="Linux drivers for the Conexant HCF Softmodem family (kernel modules)"
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')
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