1 # Contributor: Alex Ignatov <lexszero@gmail.com>
5 pkgdesc="Open source flash program for the STM32 ARM processors using the ST bootloader."
7 url="http://code.google.com/p/stm32flash/"
9 makedepends=('subversion')
11 _svntrunk=http://stm32flash.googlecode.com/svn/trunk/
17 if [ -d $_svnmod/.svn ]; then
18 (cd $_svnmod && svn up -r $pkgver)
20 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23 msg "SVN checkout done or server timeout"
24 msg "Starting make..."
26 rm -rf "$srcdir/$_svnmod-build"
27 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
28 cd "$srcdir/$_svnmod-build"
34 cd "$srcdir/$_svnmod-build/"
35 install -m 755 -d $pkgdir/usr/bin
36 install -m 755 stm32flash $pkgdir/usr/bin/stm32flash