core/tiacx/PKGBUILD

43 lines
1.6 KiB
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2010-03-28 22:22:50 +08:00
pkgname=tiacx
pkgver=20080210
pkgrel=29
2011-08-08 17:00:07 +08:00
pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock chakra kernel"
2010-03-28 22:22:50 +08:00
arch=(i686 x86_64)
url="http://acx100.sourceforge.net/"
license=('MPL')
depends=('wireless_tools' 'linux>=3.1' 'linux<3.2' 'tiacx-firmware')
2011-08-08 17:00:07 +08:00
makedepends=('linux-headers' 'linux-headers')
2010-03-28 22:22:50 +08:00
install=acx.install
source=(http://downloads.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2
kernel-2.6.27.patch
kernel-2.6.30.patch
2010-05-16 23:08:55 +08:00
kernel-2.6.31.patch
kernel-2.6.33.patch)
2011-08-08 17:00:07 +08:00
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
2010-03-28 22:22:50 +08:00
build() {
cd $startdir/src/acx-$pkgver
patch -Np1 -i ../kernel-2.6.27.patch || return 1
patch -Np0 -i ../kernel-2.6.30.patch || return 1
patch -Np1 -i ../kernel-2.6.31.patch || return 1
2010-05-16 23:08:55 +08:00
patch -Np0 -i ../kernel-2.6.33.patch || return 1
2010-03-28 22:22:50 +08:00
make -C /lib/modules/${_kernver}/build M=`pwd` || return 1
install -D acx.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless/tiacx/acx.ko
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
'9895f72f8d0c84956b0f6c3b16df0fe8'
'e2900aee839ce711a7f7606b3e3de36e'
2010-05-16 23:08:55 +08:00
'dbcb276d77df7801cef58a85c18dfe94'
'9cd35ea33b8abdd2e4efec485b05477e')