PKGBUILDs/extra/intel-537/PKGBUILD
2009-10-09 21:23:22 -05:00

30 lines
1.2 KiB
Bash

# $Id: PKGBUILD 42220 2009-06-11 20:06:49Z tpowa $
# Maintainer : Tobias Powalowski <tpowa@archlinux.org>
_kernver=2.6.30-ARCH;
pkgname=intel-537
pkgver=2.60.80.0
pkgrel=62
pkgdesc="Intel Modem Drivers for 537 chipsets. For stock arch 2.6 kernel"
arch=(i686 x86_64)
license=('custom:"INTEL537"')
url="http://linmodems.technion.ac.il/packages/Intel/"
depends=('intel-537-utils' 'kernel26>=2.6.30' 'kernel26<2.6.31')
source=(http://linmodems.technion.ac.il/packages/intel/Philippe.Vouters/intel-5337EP_secure-2.60.80.0_2009_02_08.tar.bz2
2.6.30.patch)
install=intel-537.install
build() {
cd $srcdir/intel-537EP_secure-2.60.80.0
patch -Np0 -i ../2.6.30.patch || return 1
# fix makefile
sed -i -e "s/\`uname -r\`/${_kernver}/g" makefile
sed -i -e "s/\`uname -r\`/${_kernver}/g" config_check
make KDIR=/lib/modules/${_kernver}/build KERNEL_SOURCE_PATH=/lib/modules/${_kernver}/build MODEM_TYPE=537 537 || return 1
# Install kernel module
install -D -m 644 Intel537.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/net/intel537.ko || return 1
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/intel-537.install
}
md5sums=('b5d2a258cddd28ede811bfaac41cec9b'
'475f999386f79638971382d2ed063e7a')