1 # based on libfreefare PKGBUILD by James Buckley
2 pkgname=libfreefare-svn
5 pkgdesc="Provides a convenient API for MIFARE card manipulations"
7 url="http://code.google.com/p/nfc-tools/"
9 depends=('libnfc>=1.4.0')
10 makedepends=('subversion')
11 conflicts=('libfreefare')
12 provides=('libfreefare')
14 _svntrunk=http://nfc-tools.googlecode.com/svn/trunk/libfreefare
20 if [ -d $_svnmod/.svn ]; then
21 (cd $_svnmod && svn up -r $pkgver)
23 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26 msg "SVN checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_svnmod-build"
30 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31 cd "$srcdir/$_svnmod-build"
34 ./configure --prefix=/usr
39 cd "$srcdir/$_svnmod-build"
40 make DESTDIR="$pkgdir/" install