PKGBUILD 1.58 KB
Newer Older
1 2 3
#
# Chakra Packages for Chakra, part of chakra-project.org
#
4
# maintainer abveritas@chakra-project.org
5

6
_extramodules=extramodules-3.7-CHAKRA
philm's avatar
philm committed
7 8
_kver="$(cat /lib/modules/${_extramodules}/version)"

Jan Mette's avatar
Jan Mette committed
9 10
pkgname=tiacx
pkgver=20080210
11
pkgrel=41
philm's avatar
philm committed
12
pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock chakra kernel"
abveritas's avatar
abveritas committed
13
arch=('x86_64')
Jan Mette's avatar
Jan Mette committed
14 15
url="http://acx100.sourceforge.net/"
license=('MPL')
16
depends=('wireless_tools' 'linux>=3.7' 'linux<3.8' 'tiacx-firmware')
17
makedepends=('linux-headers')
Jan Mette's avatar
Jan Mette committed
18 19 20 21
install=acx.install
source=(http://downloads.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2
        kernel-2.6.27.patch
        kernel-2.6.30.patch
22
        kernel-2.6.31.patch
Phil's avatar
Phil committed
23 24
        kernel-2.6.33.patch
        kernel-3.1.patch)
25 26 27 28 29 30
md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
         '9895f72f8d0c84956b0f6c3b16df0fe8'
         'e2900aee839ce711a7f7606b3e3de36e'
         'dbcb276d77df7801cef58a85c18dfe94'
         '9cd35ea33b8abdd2e4efec485b05477e'
         '05b32bb1e3e2df884a9d3775019b08a4')
Jan Mette's avatar
Jan Mette committed
31 32 33

build() {
    cd $startdir/src/acx-$pkgver
34 35 36 37 38
    patch -p1 -i ../kernel-2.6.27.patch
    patch -p0 -i ../kernel-2.6.30.patch
    patch -p1 -i ../kernel-2.6.31.patch
    patch -p0 -i ../kernel-2.6.33.patch
    patch -p0 -i ../kernel-3.1.patch
Phil's avatar
Phil committed
39

philm's avatar
philm committed
40 41 42 43 44 45 46
    # kernel 3.2 abi change
    sed -i -e "s/.ndo_set_multicast_list/.ndo_set_rx_mode/" usb.c
    sed -i -e "s/.ndo_set_multicast_list/.ndo_set_rx_mode/" pci.c

    make -C /lib/modules/${_kver}/build M=`pwd`
    install -D acx.ko $pkgdir/lib/modules/$_extramodules/acx.ko
    sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
Jan Mette's avatar
Jan Mette committed
47
}
48