updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / com-on-air / PKGBUILD
blob916c45bdc66d04a1c4fdabb348c1816149ecbe74
1 # Contributor: Jens Pranaitis <jens@jenux.homelinux.org>
2 # Contributor: Thomas Schneider <blacklotus@jenux.homelinux.org>
3 pkgname=com-on-air
4 pkgver=22
5 pkgrel=2
6 pkgdesc="Com on air linux driver, for dect pcmcia cards."
7 url="https://dedected.org/cgi-bin/trac.cgi/wiki/COM-ON-AIR-Linux"
8 arch=('i686' 'x86_64')
9 license=('GPL2')
10 depends=()
11 makedepends=('subversion' 'gcc')
12 conflicts=()
13 provides=()
14 source=()
15 md5sums=()
17 _svntrunk=https://dedected.org/svn/trunk/com-on-air_cs-linux
18 _svnmod=com-on-air_cs-linux
20 build() {
21   cd ${srcdir}
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
29   cd $_svnmod
30   make KERNEL_SOURCES=$_kerndir|| return 1
31   mkdir -p ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/pcmcia/
32   install com_on_air_cs.ko ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/pcmcia/