updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / stm32flash-svn / PKGBUILD
blob87113033a7041f11ba164cd50d1b8bb97bf54e62
1 # Contributor: Alex Ignatov <lexszero@gmail.com>
2 pkgname=stm32flash-svn
3 pkgver=61
4 pkgrel=2
5 pkgdesc="Open source flash program for the STM32 ARM processors using the ST bootloader."
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/stm32flash/"
8 license=('GPLv3')
9 makedepends=('subversion')
11 _svntrunk=http://stm32flash.googlecode.com/svn/trunk/
12 _svnmod=stm32flash
14 build() {
15   cd "$srcdir"
17   if [ -d $_svnmod/.svn ]; then
18     (cd $_svnmod && svn up -r $pkgver)
19   else
20     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
21   fi
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"
30   make
33 package() {
34   cd "$srcdir/$_svnmod-build/"
35   install -m 755 -d $pkgdir/usr/bin
36   install -m 755 stm32flash $pkgdir/usr/bin/stm32flash