updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / tiacx-lts / PKGBUILD
blobcdb8987b2b2c804e422ce6eb909247b6e490a8db
1 # Maintainer: James Rayner <iphitus@gmail.com>
3 pkgname=tiacx-lts
4 pkgver=20080210
5 pkgrel=5
6 pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For arch LTS 2.6 kernel"
7 arch=(i686 x86_64)
8 url="http://acx100.sourceforge.net/"
9 license=('MPL')
10 depends=('wireless_tools' 'kernel26-lts>=2.6.32' 'kernel26-lts<2.6.33' 'tiacx-firmware')
11 makedepends=('kernel26-lts-headers>=2.6.32' 'kernel26-lts-headers<2.6.33')
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 _kernver=2.6.32-lts
18 options=(!strip)
20 build() {
21     cd $srcdir/acx-$pkgver
22     patch -Np1 -i ../kernel-2.6.27.patch
23     patch -Np0 -i ../kernel-2.6.30.patch
24     patch -Np1 -i ../kernel-2.6.31.patch
25     make -C /lib/modules/${_kernver}/build M=`pwd`
28 package() {
29     cd $srcdir/acx-$pkgver
30     install -D acx.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/net/wireless/tiacx/acx.ko
31     sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
32     # gzip -9 modules
33     find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
35 md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
36          '9895f72f8d0c84956b0f6c3b16df0fe8'
37          'e2900aee839ce711a7f7606b3e3de36e'
38          'dbcb276d77df7801cef58a85c18dfe94')