updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / simulationcraft-svn / PKGBUILD
blob506e5fc2be294da33c008d84370a277dee5ff553
1 # Maintainer: Devin Cofer <ranguvar@archlinux.us>
3 pkgname=simulationcraft-svn
4 pkgdesc="A tool to simulate, analyze, and graphically display World of Warcraft combat (SVN code)"
5 pkgver=6692
6 pkgrel=1
7 url="http://code.google.com/p/simulationcraft/"
8 arch=('i686' 'x86_64')
9 license=('GPL3')
11 makedepends=()
12 depends=()
14 _svntrunk="http://simulationcraft.googlecode.com/svn/branches/cataclysm/"
15 _svnmod="simulationcraft"
17 build() {
18         cd "$srcdir"
19         msg2 "Peforming source checkout"
20         if [ -d "$_svnmod/.svn" ]; then
21                 (cd $_svnmod && svn up -r $pkgver)
22         else
23                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24         fi
25         msg2 "Source checkout completed or connection error"
26         rm -rf $_svnmod-build
27         cp -r $_svnmod $_svnmod-build
29         cd $_svnmod-build/engine
30         make
32 package() {
33         cd "$srcdir"/$_svnmod-build/engine
35         install -Dm755 simc "$pkgdir"/usr/bin/simc