updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / typhon-svn / PKGBUILD
blob69a2e12f8a6bd73ba1561be4bc7370b787b20d08
1 # Maintainer: Alessandro Pazzaglia <jackdroido at gmail dot com>
3 pkgname=typhon-svn
4 pkgver=196
5 pkgrel=1
6 pkgdesc="A slim and themeable OpenGL-based dashboard and emulator launcher"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/typhon-launcher/"
9 license=('GPL3')
10 depends=('sfml-git' 'opencv')
11 makedepends=('subversion' 'cmake')
13 _svntrunk="http://typhon-launcher.googlecode.com/svn/trunk/"
14 _svnmod="typhon-svn"
16 build() {
17     cd "$srcdir"
19     msg "Starting SVN checkout ..."
21     if [ -d $_svnmod/.svn ]
22     then
23         cd $_svnmod && svn up -r $pkgver
24     else
25         svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26     fi
28     rm -rf "$srcdir/$_svnmod-build"
29     cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
31     msg "Starting make ..."
33     cd "$srcdir/$_svnmod-build/build"
34     cmake -DCMAKE_INSTALL_PREFIX=/usr -DNOMMD=ON ..
35     make
38 package() {
39     cd "$srcdir/$_svnmod-build/build"
40     make DESTDIR="$pkgdir/" install