mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
42 lines
1.6 KiB
Bash
42 lines
1.6 KiB
Bash
|
# $Id: PKGBUILD 42322 2009-06-13 07:42:25Z tpowa $
|
||
|
# Originally by kleptophobiac <kleptophobiac@gmail.com>
|
||
|
# Modified by James Rayner for the repositories <iphitus@gmail.com>
|
||
|
|
||
|
_kernver=2.6.30-ARCH
|
||
|
|
||
|
pkgname=madwifi
|
||
|
pkgver=0.9.4.3952
|
||
|
pkgrel=5
|
||
|
pkgdesc="Madwifi drivers for Atheros wireless chipsets. For stock arch 2.6 kernel"
|
||
|
arch=(i686 x86_64)
|
||
|
license=('GPL')
|
||
|
url="http://madwifi.org"
|
||
|
depends=('madwifi-utils' 'kernel26>=2.6.30' 'kernel26<2.6.31')
|
||
|
makedepends=('sharutils')
|
||
|
install=madwifi-ng.install
|
||
|
# subversion source: svn checkout http://svn.madwifi.org/madwifi/trunk madwifi
|
||
|
source=(ftp://ftp.archlinux.org/other/madwifi/madwifi-${pkgver}.tar.bz2
|
||
|
kernel-2.6.30.patch
|
||
|
#http://downloads.sourceforge.net/madwifi/madwifi-${pkgver}.tar.gz
|
||
|
)
|
||
|
|
||
|
build() {
|
||
|
[ "${CARCH}" = "i686" ] && export ARCH=i386
|
||
|
|
||
|
#cd $startdir/src/$pkgname-$pkgver
|
||
|
cd $startdir/src/$pkgname
|
||
|
patch -Np0 -i ../kernel-2.6.30.patch || return 1
|
||
|
sed -i -e 's/-Werror//g' Makefile.inc
|
||
|
make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules|| return 1
|
||
|
make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules \
|
||
|
DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install-modules
|
||
|
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
|
||
|
|
||
|
# install to wireless kernel directory
|
||
|
mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
|
||
|
mv $startdir/pkg/lib/modules/$_kernver/net/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
|
||
|
rm -r $startdir/pkg/lib/modules/$_kernver/net/
|
||
|
}
|
||
|
md5sums=('f5bac7a3c0b5b374ae60c0d536eb9a74'
|
||
|
'f32169dd509d9f7d9355e058247b6f02')
|