updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / zsnes-svn / PKGBUILD
blob8073e49caa3202dc48c97d1c537d1d90f13c63b1
1 # Contributor: rabyte <rabyte__gmail>
3 pkgname=zsnes-svn
4 pkgver=4986
5 pkgrel=2
6 pkgdesc="A Super Nintendo emulator"
7 arch=('i686')
8 url="http://www.zsnes.com/"
9 license=('GPL')
10 depends=('libao' 'libgl' 'libpng>=1.2' 'sdl>=1.2')
11 makedepends=('autoconf' 'automake' 'nasm' 'subversion')
12 conflicts=('zsnes' 'zsnes-wip')
13 source=()
14 md5sums=()
16 _svntrunk=http://svn.bountysource.com/zsnes/trunk
17 _svnmod=zsnes
19 build() {
20   cd $startdir/src
22   msg "Updating SVN entries for $_svnmod..."
23   svn co $_svntrunk $_svnmod -r $pkgver
24   cp -r $_svnmod $_svnmod-build
25   cd $_svnmod-build/src
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   ./autogen.sh --prefix=/usr --disable-debugger --enable-libao
31   make || return 1
32   make DESTDIR=$startdir/pkg install
34   # install icon and desktop file
35   install -m644 -D icons/48x48x32.png $startdir/pkg/usr/share/pixmaps/zsnes.png
36   install -m644 -D linux/zsnes.desktop $startdir/pkg/usr/share/applications/zsnes.desktop
38   rm -rf $startdir/src/$_svnmod-build