updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sdl-wii-pre-svn / PKGBUILD
blob4ca50b621172587f5f70c72b71f8f7a3ae75b3b1
1 # Maintainer:  Matthew Bauer <mjbauer95@gmail.com>
3 pkgname=sdl-wii-pre-svn
4 pkgver=78
5 pkgrel=1
6 pkgdesc="SDL port for the Wii."
7 makedepends=(libogc-svn "devkitppc>=17" sdl-wii-deps)
8 arch=(any)
9 url="http://code.google.com/p/sdl-wii"
10 license=('custom')
12 _svntrunk=http://sdl-wii.googlecode.com/svn/trunk/
13 _svnmod=trunk
15 build() {
16         mkdir -p $pkgdir/opt/devkitpro/libogc/include;
17         mkdir -p $pkgdir/opt/devkitpro/libogc/lib/wii;
19         cd ${srcdir}
21         if [ -d $_svnmod/.svn ]; then
22                 (cd $_svnmod && svn up -r $pkgver)
23         else
24                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25         fi
27         msg "SVN checkout done or server timeout"
28         msg "Starting make..."
30         cp -r $_svnmod $_svnmod-build
31         cd $_svnmod-build/SDL
33         make
34         make INSTALL_HEADER_DIR=$pkgdir/opt/devkitpro/libogc/include INSTALL_LIB_DIR=$pkgdir/opt/devkitpro/libogc/lib/wii install
36         cd ../smpeg;
37         make
38         make INSTALL_HEADER_DIR=$pkgdir/opt/devkitpro/libogc/include INSTALL_LIB_DIR=$pkgdir/opt/devkitpro/libogc/lib/wii install