1 # $Id: PKGBUILD 48231 2009-08-20 17:00:49Z tpowa $
2 # Maintainer : zlbgps<zlbgps@gmail.com>
6 pkgdesc="S3C2440 dnw for linux"
7 url="http://code.google.com/p/c8051f320dev"
9 install=${pkgname}.install
12 P="${pkgname}-${pkgver}"
14 #source=(http://c8051f320dev.googlecode.com/files/${pkgname}_linux_latest.tgz)
15 arch=('i686' 'x86_64')
16 #makedepends=("xz-utils")
18 depends=('kernel26>=2.6.31' 'kernel26<2.6.32')
25 cp -R $startdir/$FILESDIR/* ${srcdir} || return 1
29 sed -e "s|secbulk0|secbulk1|" -i ${pkgname}.c || return 1
31 install -D -m755 $pkgname ${pkgdir}/usr/bin/${pkgname} || return 1
35 make -C /lib/modules/`uname -r`/build INSTALL_MOD_PATH=$startdir/pkg/ M=`pwd` modules_install || return 1
36 # install -Dm644 $MOD_NAME.ko ${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/usb/misc/$MOD_NAME.ko || return 1