1 # Contributor: James Rayner <iphitus@gmail.com>
6 pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock arch 2.6 kernel"
8 url="http://acx100.sourceforge.net/"
10 depends=('wireless_tools' 'kernel26>=2.6.39' 'kernel26<2.6.40' 'tiacx-firmware')
11 makedepends=('kernel26-headers>=2.6.39' 'kernel26-headers<2.6.40')
13 source=(http://downloads.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2
20 md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
21 '9895f72f8d0c84956b0f6c3b16df0fe8'
22 'e2900aee839ce711a7f7606b3e3de36e'
23 'dbcb276d77df7801cef58a85c18dfe94'
24 '9cd35ea33b8abdd2e4efec485b05477e')
27 cd $srcdir/acx-$pkgver
28 patch -Np1 -i ../kernel-2.6.27.patch
29 patch -Np0 -i ../kernel-2.6.30.patch
30 patch -Np1 -i ../kernel-2.6.31.patch
31 patch -Np0 -i ../kernel-2.6.33.patch
32 make -C /lib/modules/${_kernver}/build M=$(pwd)
36 cd $srcdir/acx-$pkgver
37 install -D acx.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/net/wireless/tiacx/acx.ko
38 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
40 find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;