1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from SVN sources.
9 # Maintainer: James Buckley <xanium4332@gmail.com>
13 pkgdesc="Daemon which access NFC devices and targets, offering D-Bus services to get devices list, targets list, target content..."
14 arch=('i686' 'x86_64')
15 url="http://code.google.com/p/nfc-tools/"
17 depends=('qt' 'libnfc>=1.4.0' 'libfreefare>=0.3.0' 'libndef>=1.1.0')
18 makedepends=('subversion' 'cmake')
21 _svntrunk=http://nfc-tools.googlecode.com/svn/trunk/nfcd
27 if [ -d $_svnmod/.svn ]; then
28 (cd $_svnmod && svn up -r $pkgver)
30 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
33 msg "SVN checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_svnmod-build"
37 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
38 cd "$srcdir/$_svnmod-build"
45 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
51 cd "$srcdir/$_svnmod-build/build"
52 make DESTDIR="$pkgdir/" install
54 cd "$srcdir/$_svnmod-build"
55 install -D -m 644 nfcd.conf "$pkgdir/etc/dbus-1/system.d/nfcd.conf"