2 # See http://wiki.archlinux.org/index.php/Arch_CVS_&_SVN_PKGBUILD_guidelines
3 # for more information on packaging from SVN sources.
5 # Contributor: smartcat99s <smartcat99s AT gmail>
9 pkgdesc="Folding@Home monitor written in .NET/mono"
10 arch=('i686' 'x86_64')
11 url="http://code.google.com/p/hfm-net/"
14 makedepends=('subversion' 'monodevelop')
20 _svntrunk=http://hfm-net.googlecode.com/svn/trunk/
26 if [ -d $_svnmod/.svn ]; then
27 (cd $_svnmod && svn up -r $pkgver)
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_svnmod-build"
36 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37 cd "$srcdir/$_svnmod-build"
43 mdtool build -c:Release || exit 1
45 mdtool build -c:Release HFM.sln || exit 1
50 install -D -m755 $srcdir/$_svnmod-build/HFM/bin/Release/HFM.exe $pkgdir/opt/hfm-net/HFM.exe
51 install -D -m644 $srcdir/$_svnmod-build/HFM/bin/Release/*.config $pkgdir/opt/hfm-net/
52 install -D -m644 $srcdir/$_svnmod-build/HFM/app.config $pkgdir/opt/hfm-net/HFM.exe.config
53 install -D -m755 $srcdir/$_svnmod-build/HFM/bin/Release/*.dll $pkgdir/opt/hfm-net/
54 install -D -m644 $srcdir/$_svnmod-build/HFM/bin/Release/*.txt $pkgdir/opt/hfm-net/
55 install -d $pkgdir/opt/hfm-net/{CSS,XML,XSL}
56 install -D -m644 $srcdir/$_svnmod-build/HFM/bin/Release/CSS/* $pkgdir/opt/hfm-net/CSS
57 install -D -m644 $srcdir/$_svnmod-build/HFM/bin/Release/XML/* $pkgdir/opt/hfm-net/XML
58 install -D -m644 $srcdir/$_svnmod-build/HFM/bin/Release/XSL/* $pkgdir/opt/hfm-net/XSL