1 # Maintainer: Peter Ivanov <ivanovp@gmail.com>
6 pkgdesc="A tool to load .bit files to Digilent's Nexys 2 board"
8 url="http://ixo-jtag.sourceforge.net/nexys2-linux-howto.html"
10 depends=(libftd2xx fxload urjtag-svn)
13 source=(nexys2prog_path.patch 55-nexys2.rules)
14 md5sums=(651a177d161a2464b49dda15a3606776 94eda290718149882b7f67d97857329c)
16 _svnroot=https://ixo-jtag.svn.sourceforge.net/svnroot/ixo-jtag/nexys2prog/trunk
20 msg "Connecting to SVN server..."
21 if [[ -d $srcdir/$pkgname-$pkgver ]]; then
22 cd $srcdir/$pkgname-$pkgver && svn update || return 1
24 svn co $_svnroot $srcdir/$pkgname-$pkgver || return 1
25 cd $srcdir/$pkgname-$pkgver
28 msg "SVN checkout done or server timeout"
29 cd "$srcdir/$pkgname-$pkgver/"
30 if [ ! -f nexys2prog.patched ]; then
31 patch -p2 < ../nexys2prog_path.patch
32 touch nexys2prog.patched
37 cd "$srcdir/$pkgname-$pkgver/"
38 install -d ${pkgdir}/usr/bin
39 install -d ${pkgdir}/usr/share/${pkgname}
40 install -d ${pkgdir}/etc/udev/rules.d
41 install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
42 install -Dm644 usb_jtag.hex ${pkgdir}/usr/share/${pkgname}/usb_jtag.hex
43 install -Dm644 ../55-nexys2.rules ${pkgdir}/etc/udev/rules.d/55-nexys2.rules