updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / hfm-net-svn / PKGBUILD
blobcd4b3756821c936d14045f0efaa8097c6ca9278a
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>
6 pkgname=hfm-net-svn
7 pkgver=182
8 pkgrel=1
9 pkgdesc="Folding@Home monitor written in .NET/mono"
10 arch=('i686' 'x86_64')
11 url="http://code.google.com/p/hfm-net/"
12 license=('GPL2')
13 depends=('mono')
14 makedepends=('subversion' 'monodevelop')
15 install=
16 source=()
17 noextract=()
18 md5sums=()
20 _svntrunk=http://hfm-net.googlecode.com/svn/trunk/
21 _svnmod=hfm-net
23 build() {
24   cd "$srcdir"
26   if [ -d $_svnmod/.svn ]; then
27     (cd $_svnmod && svn up -r $pkgver)
28   else
29     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30   fi
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"
39   #
40   # BUILD
41   #
42   cd HTMLparser2
43   mdtool build -c:Release || exit 1
44   cd ..
45   mdtool build -c:Release HFM.sln || exit 1
47   #
48   # INSTALL
49   #
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