1 # Contributer: N30N <archlinux@alunamation.com>
6 pkgdesc="ALi M5602 webcam driver"
7 url="http://m560x-driver.sourceforge.net/"
11 makedepends=("subversion")
15 _svntrunk="https://m560x-driver.svn.sourceforge.net/svnroot/m560x-driver"
16 _svnmod="m560x-driver"
20 msg "Connecting to blender SVN server......."
21 if [ -d ${_svnmod}/.svn ]; then
23 svn update -r ${pkgver}
24 cd m560x/branches/m5602-gspca
27 svn co ${_svntrunk} ${_svnmod} --config-dir ./ -r ${pkgver} || return 1
28 cd ${_svnmod}/m560x/branches/m5602-gspca
31 msg "Starting build process."
34 mkdir -p ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/usb/media
35 install -m644 gspca_main.ko ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/usb/media/gspca_main.ko
36 install -m644 gspca_m5602.ko ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/usb/media/gspca_m5602.ko