1 # Maintainer: Pascal E. <archlinux at hardfalcon dot net>
5 pkgdesc="MiFare Classic Universal toolKit (MFCUK)"
7 url="http://code.google.com/p/mfcuk/"
9 depends=('libnfc>=1.4.2')
10 makedepends=('subversion' 'autoconf' 'automake')
11 provides=('tk-libnfc-crapto1')
12 conflicts=('tk-libnfc-crapto1')
13 replaces=('tk-libnfc-crapto1')
15 _svntrunk=http://mfcuk.googlecode.com/svn/trunk/
16 _svnmod=mfcuk-read-only
21 if [ -d $_svnmod/.svn ]; then
22 (cd $_svnmod && svn up -r $pkgver) || return 1
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
27 msg "SVN checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_svnmod-build" || return 1
31 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build" || return 1
32 cd "$srcdir/$_svnmod-build" || return 1
37 ./configure --prefix=/usr || return 1
38 sed -i 's/"\.\/data\//"\/usr\/share\/mfcuk\/data\//g' src/mfcuk_finger.c
44 cd "$srcdir/$_svnmod-build" || return 1
45 make DESTDIR="$pkgdir/" install || return 1
46 rm -Rf src/bin/data/.svn
47 rm -Rf src/bin/data/*/.svn
49 echo install -D src/bin/data $pkgdir/usr/share/mfcuk/data
50 install -dm0755 $pkgdir/usr/share/mfcuk/data/tmpls_fingerprints
51 install -Dm0644 src/bin/data/tmpls_fingerprints/* $pkgdir/usr/share/mfcuk/data/tmpls_fingerprints/