updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / et131x / PKGBUILD
blob12115bb8fc402a9661fc3685f25a110023e0f24d
1 # Contributor: Tom K <tom@archlinux.org>
2 # Maintainer: Heine Pedersen <nox@nox.dk>
4 pkgname=et131x
5 pkgver=1.2.3_3
6 pkgrel=2
7 pkgdesc="Agere ET131x ethernet driver, for kernel26"
8 depends=('kernel26')
9 source=(http://surfnet.dl.sourceforge.net/sourceforge/et131x/et131x-1.2.3-3.tar.gz
10 #       01_et131x-1.2.3-patch2.6.21.patch 
11 #       02_et131x-1.2.3-2.6.21.kmem.patch 
12 #       03_et131x-1.2.3-2.6.24_by_slh.patch 
13 #       04_et131x-1.2.3-2.6.23.kmem_cache_create.patch 
14 #       05_et131x-1.2.3-warning-unused-variable-fix.patch
15         06_et131x-1.2.3-irq-timer-fix.patch
18 md5sums=('9496422c7d218f27bae1be42a04d122e'
19 #       'a18422b3e1dd42a547021988d6e82c84'
20 #       '03ed9e1e860e23f2f00704cd9d851189'
21 #       'd270f74cefef949283855885946697a8'
22 #       'e3fcb1d845825bc2af82ea4fed22933d'
23 #       'aee149acedb3e72a3e55ffba89a8a996'
24         '4dbd30d6486807a4b8007aad268c7ec7'
27 url="http://sourceforge.net/projects/et131x/"
28 license="BSD"
29 arch=('i686')
30 install=et131x.install
32 _kernver=2.6.25-ARCH
34 build() {
35   cd $startdir/src/et131x-1.2.3-3
37 #  patch -p1 < $startdir/01_et131x-1.2.3-patch2.6.21.patch || return 1
38 #  patch -p1 < $startdir/02_et131x-1.2.3-2.6.21.kmem.patch || return 1
39 #  patch -p1 < $startdir/03_et131x-1.2.3-2.6.24_by_slh.patch || return 1
40 #  patch -p1 < $startdir/04_et131x-1.2.3-2.6.23.kmem_cache_create.patch || return 1
41 #  patch -p1 < $startdir/05_et131x-1.2.3-warning-unused-variable-fix.patch || return 1
42   patch -p1 < $startdir/06_et131x-1.2.3-irq-timer-fix.patch || return 1
44   make KERNEL_VER=${_kernver} || return 1
45   install -Dm755 et131x.ko $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/et131x.ko
46   sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/et131x.install