public
Created

  • Download Gist
PKGBUILD.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#PCSX2-svn maintainer: Hans-Kristian Arntzen <maister at archlinux.us>
pkgname=pcsx2-svn
pkgver=3120
pkgrel=1
pkgdesc="A PlayStation 2 emulator."
arch=('i686')
url="http://www.pcsx2.net"
license=('GPL')
depends=('bzip2' 'gtk2' 'nvidia-cg-toolkit' 'glew' 'alsa-lib' 'sdl')
install="pcsx2.install"
source=('pcsx2.sh')
md5sums=('7e05a5d90e17f4c65892a9f7b5d9f5ab')
 
_svntrunk=http://pcsx2.googlecode.com/svn/trunk
_svnmod=pcsx2
 
_svntrunk_zerogs=http://sanechka.spb.ru/svnroot/ruslan/zerogs/
_svnmod_zerogs=zzogl
 
build() {
cd "$srcdir"
 
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
 
rm -rf "$srcdir/$_svnmod-build"
cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
 
cd plugins
if [ -d $_svnmod_zerogs/.svn ]; then
(cd $_svnmod_zerogs && svn up -r $pkgver)
else
svn co $_svntrunk_zerogs --config-dir ./ -r $pkgver $_svnmod_zerogs
fi
cd ..
 
msg "SVN checkout done or server timeout"
msg "Starting make..."
 
mkdir -p ${pkgdir}/opt/pcsx2
cp -R bin/* ${pkgdir}/opt/pcsx2/ || return 1
 
install -m0755 -D ${srcdir}/pcsx2.sh ${pkgdir}/usr/bin/pcsx2 || return 1
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.