summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/wlan-ng26-svn/PKGBUILD
blob: 7d4ff758d93f5bfb8a9b7183d9c13b5344ddbffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 14957 2008-10-11 20:14:56Z tpowa $
# Maintainer: Tom Killian <tom@archlinux.org>

pkgname=wlan-ng26-svn
pkgver=r1870
pkgrel=1
_kernver=2.6.27-ARCH
pkgdesc="Wireless Lan usb modules. For kernel26."
arch=(i686 x86_64)
license=('MPL')
depends=('kernel26>=2.6.27-1' 'kernel26<2.6.28' 'wlan-ng26-utils')
source=(ftp://ftp.knoppmyth.net/R6/sources/wlan-ng26-svn-$pkgver.tar.bz2
	kernel-2.6.26.patch
	kernel-2.6.27.patch)
url="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/"
install=wlan-ng26.install
options=(!makeflags)
md5sums=('86af583059976c2f340e27911af49059'
         '7023c8c1f048659f95c2a41e5f1ae772'
         '9261df23043b181fd86c5e4100a84883')

build() {
#   cd $srcdir/linux-wlan-ng-$pkgver
   cd $srcdir/trunk
#   patch -Np0 -i ../kernel-2.6.26.patch || return 1
#   patch -Np0 -i ../kernel-2.6.27.patch || return 1
  # only built usb modules the rest is covered by hostap and orinoco driver, according to gentoo changelog 
  sed -i "s#PRISM2_PCMCIA=y#PRISM2_PCMCIA=n#;s#TARGET_ROOT_ON_HOST=#TARGET_ROOT_ON_HOST=$startdir/pkg#;s#PRISM2_PLX=y#PRISM2_PLX=n#;s#PRISM2_PCI=y#PRISM2_PCI=n#;s#PRISM2_USB=n#PRISM2_USB=y#;s%#LINUX_SRC=/usr/src/linux%LINUX_SRC=/lib/modules/${_kernver}/build%" config.in
   make auto_config
   make all || return 1
   make install
   sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/wlan-ng26.install
   rm -r $pkgdir/{etc,sbin,usr,init.d}
   # fix module path
   mkdir -p $pkgdir/lib/modules/${_kernver}/kernel/drivers/net/wireless
   mv $pkgdir/lib/modules/${_kernver}/linux-wlan-ng \
      $pkgdir/lib/modules/${_kernver}/kernel/drivers/net/wireless
}