updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / pod-svn / PKGBUILD
bloba6eee7dd19e313bc81d7a72b85bdc01302648665
2 # Contributor: Yannick Poirier <contact@yannickpoirier.fr>
3 pkgname=pod-svn
4 pkgver=135
5 pkgrel=1
6 pkgdesc="This (Python/Qt) tool allows you to easily create FPGA bitfiles for your embedded system, from several Open Source IPs (compatibles with the OpenCores Wishbone bus) . It will also generates the corresponding drivers (currently only Linux ones)."
7 arch=('i686')
8 url="http://sourceforge.net/projects/periphondemand/"
9 license=('LGPL')
10 groups=()
11 depends=('python' 'pyparsing')
12 makedepends=('subversion')
13 provides=('pod')
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 source=()
20 noextract=()
21 md5sums=() #generate with 'makepkg -g'
23 _svntrunk=https://periphondemand.svn.sourceforge.net/svnroot/periphondemand/trunk
24 _svnmod=${pkgname}
26 # -------------------------------------------------------------------------
27 # - see http://www.armadeus.com/wiki/index.php?title=POD_installation_guide
28 # -------------------------------------------------------------------------
29 build() {
31   cd "$srcdir"
33   if [ -d $_svnmod/.svn ]; then
34     (cd $_svnmod && svn up -r $pkgver)
35   else
36     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
37   fi
39   msg "SVN checkout done or server timeout"
41   rm -rf "$srcdir/$_svnmod-build"
42   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
43   cd "$srcdir/${_svnmod}-build"
45   msg "Make python POD distribution..."
46   python setup.py sdist
47   cd dist
48   tar -zxvf PeriphOnDemand-*-*.tar.gz 
49   cd PeriphOnDemand* #the current version is PeriphOnDemand-HEAD-59
51   msg "Now install POD ..."
52   python setup.py build
53   python setup.py install --root="${pkgdir}" || return 1
55   msg "--------------------------------------------------------------------"
56   msg "please read http://www.armadeus.com/wiki/index.php?title=POD_Tutorial"
57   msg "--------------------------------------------------------------------"