diff options
Diffstat (limited to 'extra/madwifi')
-rw-r--r-- | extra/madwifi/PKGBUILD | 24 | ||||
-rw-r--r-- | extra/madwifi/madwifi-ng.install | 6 |
2 files changed, 18 insertions, 12 deletions
diff --git a/extra/madwifi/PKGBUILD b/extra/madwifi/PKGBUILD index 4c6e24ed3..1c1d9e484 100644 --- a/extra/madwifi/PKGBUILD +++ b/extra/madwifi/PKGBUILD @@ -1,24 +1,25 @@ -# $Id: PKGBUILD 105333 2011-01-07 20:54:16Z tpowa $ +# $Id: PKGBUILD 115939 2011-03-22 14:09:32Z tpowa $ # Originally by kleptophobiac <kleptophobiac@gmail.com> # Modified by James Rayner for the repositories <iphitus@gmail.com> -_kernver=2.6.37-ARCH +_kernver=2.6.38-ARCH pkgname=madwifi -pkgver=0.9.4.4133 -pkgrel=4 +pkgver=0.9.4.4136 +pkgrel=2 pkgdesc="Madwifi drivers for Atheros wireless chipsets. For stock arch 2.6 kernel" arch=(i686 x86_64) license=('GPL') url="http://madwifi-project.org" -depends=('madwifi-utils' 'kernel26>=2.6.37' 'kernel26<2.6.38') -makedepends=('kernel26-headers>=2.6.37' 'kernel26-headers<2.6.38') +depends=('madwifi-utils' 'kernel26>=2.6.38' 'kernel26<2.6.39') +makedepends=('kernel26-headers>=2.6.38' 'kernel26-headers<2.6.39') makedepends=('sharutils') install=madwifi-ng.install # subversion source: svn checkout http:/madwifi-project.org/svn/madwifi/trunk madwifi source=(ftp://ftp.archlinux.org/other/madwifi/madwifi-${pkgver}.tar.bz2 #http://downloads.sourceforge.net/madwifi/madwifi-${pkgver}.tar.gz ) +options=(!strip) build() { [ "${CARCH}" = "i686" ] && export ARCH=i386 @@ -26,7 +27,11 @@ build() { #cd $startdir/src/$pkgname-$pkgver cd $startdir/src/$pkgname 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 +} + +package() { + cd $startdir/src/$pkgname 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 @@ -35,6 +40,7 @@ build() { 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/ + # gzip -9 modules + find "$pkgdir" -name '*.ko' -exec gzip -9 {} \; } - -md5sums=('ca3c3504d000e7b3d7063af46271c932') +md5sums=('f705acf5597ebe070efeaeb6c330748f') diff --git a/extra/madwifi/madwifi-ng.install b/extra/madwifi/madwifi-ng.install index a6dfd6568..8681b53ed 100644 --- a/extra/madwifi/madwifi-ng.install +++ b/extra/madwifi/madwifi-ng.install @@ -1,14 +1,14 @@ post_install() { - KERNEL_VERSION='2.6.37-ARCH' + KERNEL_VERSION='2.6.38-ARCH' depmod -ae $KERNEL_VERSION > /dev/null 2>&1 } post_upgrade() { - KERNEL_VERSION='2.6.37-ARCH' + KERNEL_VERSION='2.6.38-ARCH' depmod -ae $KERNEL_VERSION > /dev/null 2>&1 } post_remove() { - KERNEL_VERSION='2.6.37-ARCH' + KERNEL_VERSION='2.6.38-ARCH' depmod -ae $KERNEL_VERSION > /dev/null 2>&1 } |