updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / sdricoh_cs-svn / PKGBUILD
blob12d1b8294f108d20cfef67fd21a51d793c426774
1 # Contributor: Frank Oosterhuis <frank@scriptzone.nl
3 pkgname=sdricoh_cs-svn
4 pkgver=15
5 pkgrel=1
6 pkgdesc="Linux driver for Ricoh Bay1Controller Secure Digital and MMC Card Readers"
7 arch=('i686')
8 url="http://sourceforge.net/projects/sdricohcs"
9 license=('GPL')
10 depends=('kernel26')
11 makedepends=('subversion')
12 conflicts=()
13 options=('!strip')
14 install=sdricoh_cs.install
15 _kernver=2.6.20-ARCH
16 source=(sdricoh_cs.install debug.patch write.patch)
17 md5sums=(e8aa20bbe9e98e33d8f2b8cdf7f11da0 8c5cecb1c07f79d6a0e54818ef10638f 18ca4a9fde9956af64cd2489b0e5110a)
18 sha1sums=(ea26d8019ea4988125142b60048887d5efb6a22a e7aa5af67ad83291b6d69bcefd02404b58aebacf 6fec49a1125223d23c7aab096a4a5c913bbfcede)
20 _svnmod=sdricohcs
21 _svntrunk=https://sdricohcs.svn.sourceforge.net/svnroot/sdricohcs
23 build() {
24     cd $startdir/src
25     msg "Connecting to $_svnmod SVN server...."
26     svn co $_svntrunk $_svnmod -r $pkgver
27         
28     msg "SVN checkout done or server timeout"
29         
30     msg "Starting make..."
32     patch -Np0 -i write.patch
33 #    patch -Np0 -i debug.patch    
35     cd sdricohcs/sdricoh_cs
36     
37     make || return 1
39     install -m 644 -D sdricoh_cs.ko \
40         $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/mmc/sdricoh_cs.ko