updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / m5602-usb-svn / PKGBUILD
blob48843d5a357e65901a7a27905c4b245e8545e47a
1 # Contributer: N30N <archlinux@alunamation.com>
3 pkgname=m5602-usb-svn
4 pkgver=493
5 pkgrel=1
6 pkgdesc="ALi M5602 webcam driver"
7 url="http://m560x-driver.sourceforge.net/"
8 license="GPL"
9 arch=("i686" "x86_64")
10 depends=("libv4l")
11 makedepends=("subversion")
12 source=()
13 md5sums=()
15 _svntrunk="https://m560x-driver.svn.sourceforge.net/svnroot/m560x-driver"
16 _svnmod="m560x-driver"
18 build() {
19         cd ${srcdir}
20         msg "Connecting to blender SVN server......."
21         if [ -d ${_svnmod}/.svn ]; then
22                 cd ${_svnmod}
23                 svn update -r ${pkgver}
24                 cd m560x/branches/m5602-gspca
25                 make clean
26         else
27                 svn co ${_svntrunk} ${_svnmod} --config-dir ./ -r ${pkgver} || return 1
28                 cd ${_svnmod}/m560x/branches/m5602-gspca
29         fi
31         msg "Starting build process."
32         make || return 1
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