updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / tiacx / PKGBUILD
blob1d02b9dcd8dcc36e82b3bcfc289182edddb7e239
1 # Contributor: James Rayner <iphitus@gmail.com>
3 pkgname=tiacx
4 pkgver=20080210
5 pkgrel=22
6 pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock arch 2.6 kernel"
7 arch=(i686 x86_64)
8 url="http://acx100.sourceforge.net/"
9 license=('MPL')
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')
12 install=acx.install
13 source=(http://downloads.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2
14         kernel-2.6.27.patch
15         kernel-2.6.30.patch
16         kernel-2.6.31.patch
17         kernel-2.6.33.patch)
18 options=(!strip)
19 _kernver=2.6.39-ARCH
20 md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
21          '9895f72f8d0c84956b0f6c3b16df0fe8'
22          'e2900aee839ce711a7f7606b3e3de36e'
23          'dbcb276d77df7801cef58a85c18dfe94'
24          '9cd35ea33b8abdd2e4efec485b05477e')
26 build() {
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)
35 package () {
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
39     # gzip -9 modules
40     find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;