1 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
6 _pkgrev=r4594 #svn revision
7 _extrainfo=-linux~translation_fix #incommon, but important string
8 pkgdesc="A PlayStation 2 emulator."
10 url="http://www.pcsx2.net"
12 if [ $CARCH == "x86_64" ]; then
13 depends=('lib32-bzip2' 'lib32-sdl' 'lib32-wxgtk'
14 'lib32-glew1.5' 'lib32-nvidia-cg-toolkit'
15 'lib32-portaudio' 'lib32-libjpeg6')
17 depends=('bzip2' 'alsa-lib' 'sdl' 'zlib' 'wxgtk' 'glew1.5'
18 'nvidia-cg-toolkit' 'portaudio' 'libjpeg6')
21 conflicts=('pcsx2-bin' 'pcsx2-svn') # Same destination folders
22 options=('!emptydirs')
23 install="pcsx2.install"
24 source=("http://pcsx2.googlecode.com/files/pcsx2-$pkgver-${_pkgrev}${_extrainfo}.tar.gz"
25 'pcsx2.sh' 'pcsx2.xpm' 'pcsx2.desktop')
26 md5sums=('7441387fd223827248c23727d5bc87c7'
27 'c3f5a0dc776362db1950c8b0eb4c0a69'
28 '18cb3c5a243a27363553d3e1008210c0'
29 'b055ff7c0f236f33702f4813ae4b980d')
32 cd "${srcdir}/pcsx2-$pkgver-$_pkgrev-linux"
34 mkdir -p "${pkgdir}/opt/pcsx2" \
35 "${pkgdir}/usr/share/man/man1" \
36 "${pkgdir}/usr/share/locale/"
38 cp -rPf * "${pkgdir}/opt/pcsx2/"
39 # Install translation files
40 mv "${pkgdir}/opt/pcsx2/Langs/"* \
41 "${pkgdir}/usr/share/locale/"
43 mv "${pkgdir}/opt/pcsx2/docs/pcsx2.man" \
44 "${pkgdir}/usr/share/man/man1/pcsx2.1"
45 # Install runnable script, icon and desktop item
46 install -Dm755 "${srcdir}/pcsx2.sh" \
47 "${pkgdir}/usr/bin/pcsx2"
48 install -Dm644 "${srcdir}/pcsx2.xpm" \
49 "${pkgdir}/usr/share/pixmaps/pcsx2.xpm"
50 install -Dm644 "${srcdir}/pcsx2.desktop" \
51 "${pkgdir}/usr/share/applications/pcsx2.desktop"
52 # Removing uneeded stuff / cleanup
53 rmdir "${pkgdir}/opt/pcsx2/"{Langs,bios,help}
54 rm "${pkgdir}/opt/pcsx2/launch_pcsx2_linux.sh"