updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / sdl-wii-svn / PKGBUILD
blobd0d22fc9dc85cf0be2689df1962c79cbf8bfbf58
1 # Maintainer:  Matthew Bauer <mjbauer95@gmail.com>
3 pkgname=sdl-wii-svn
4 pkgver=71
5 pkgrel=1
6 pkgdesc="SDL port for the Wii."
7 makedepends=(libogc-svn devkitppc sdl-wii-pre-svn sdl-wii-deps)
8 makerequires=()
9 arch=(any)
10 url="http://code.google.com/p/sdl-wii"
11 license=('custom')
13 _svntrunk=http://sdl-wii.googlecode.com/svn/trunk/
14 _svnmod=trunk
16 build() {
17         mkdir -p $pkgdir/opt/devkitpro/libogc/include;
18         mkdir -p $pkgdir/opt/devkitpro/libogc/lib/wii;
20         cd ${srcdir}
22         if [ -d $_svnmod/.svn ]; then
23                 (cd $_svnmod && svn up -r $pkgver)
24         else
25                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26         fi
28         msg "SVN checkout done or server timeout"
29         msg "Starting make..."
31         cp -r $_svnmod $_svnmod-build
32         cd $_svnmod-build
34         make
35         make INSTALL_HEADER_DIR=$pkgdir/opt/devkitpro/libogc/include INSTALL_LIB_DIR=$pkgdir/opt/devkitpro/libogc/lib/wii install
37         rm $pkgdir/opt/devkitpro/libogc/lib/wii/libsmpeg.a
38         rm $pkgdir/opt/devkitpro/libogc/lib/wii/libSDL.a
39         rm -r $pkgdir/opt/devkitpro/libogc/include/SDL
40         rm -r $pkgdir/opt/devkitpro/libogc/include/mpeg