3 pkgname=crossover-games
6 pkgdesc="Play Windows Games on Linux"
9 makedepends=('binutils' 'tar')
11 if [ $CARCH = 'i686' ] ;
14 depends=('alsa-lib' 'libsm' 'libxext' 'libxrandr' 'libice' 'pygtk' 'desktop-file-utils' 'fontconfig' 'libxcursor' 'libxdamage' 'libxxf86dga' 'mesa')
15 optdepends=('libxcursor: coloured mouse pointer support'
16 'libxi: enables joystick and tablet support'
17 'libxinerama: enables spanning multiple screens'
18 'openssl: support for secure Internet communication'
19 'libcups: printing support'
20 'libpng: enable PNG images'
21 'libjpeg: enable JPEG images'
22 'libxxf86vm: perform gamma adjustments'
23 'hal: automatically detect CD-ROMs, DVDs, and USB keys'
24 'unzip: required to install Guild Wars, automatic installer extraction'
29 depends=('fontconfig' 'desktop-file-utils' 'alsa-lib' 'lib32-alsa-lib' 'lib32-fontconfig' 'lib32-libxcursor' 'libxxf86dga' 'libxrandr' 'libxdamage' 'lib32-libxdamage' 'lib32-libxxf86dga' 'mesa' 'lib32-mesa' 'lib32-glibc' 'libxcursor' 'lib32-libsm' 'lib32-libxext' 'lib32-zlib' 'lib32-gcc-libs' 'lib32-libxrandr' 'lib32-libice' 'lib32-util-linux-ng' 'lib32-e2fsprogs' 'pygtk')
30 optdepends=('lib32-nvidia-utils: enables 3D under nvidia cards'
31 'lib32-catalyst-utils: enables 3D under ati cards'
32 'lib32-libxcursor: coloured mouse pointer support'
33 'lib32-libxinerama: enables spanning multiple screens'
34 'lib32-openssl: support for secure Internet communication'
35 'lib32-libcups: printing support'
36 'lib32-libxxf86vm: perform gamma adjustments'
37 'lib32-libxi: enables joystick and tablet support'
38 'lib32-libpng: enable PNG images'
39 'lib32-libjpeg: enable JPEG images'
40 'lib32-hal: automatically detect CD-ROMs, DVDs, and USB keys'
41 'unzip: required to install Guild Wars, automatic installer extraction'
45 url="http://www.codeweavers.com"
47 source=("http://media.codeweavers.com/pub/crossover/cxgames/demo/crossover-games-demo_${pkgver}-1_i386.deb" cxgames.conf)
48 install=${pkgname}.install
52 ar -p crossover-games-demo_${pkgver}-1_i386.deb data.tar.gz | tar zxf - -C "${pkgdir}" || return 1
53 rm $pkgdir/opt/cxgames/doc # remove symbolic link
54 mkdir $pkgdir/opt/cxgames/doc # create real directory
55 mv $pkgdir/usr/share/doc/crossover-games-demo/* $pkgdir/opt/cxgames/doc
56 gzip -d $pkgdir/opt/cxgames/doc/license.txt.gz
57 install -m 644 -D $pkgdir/opt/cxgames/doc/license.txt $pkgdir/usr/share/licenses/crossover-games/license
58 sed s/\;\;"\"MenuRoot\" = \"\""/"MenuRoot = Windows Games/" -i $pkgdir/opt/cxgames/share/crossover/bottle_data/cxbottle.conf
59 sed s/\;\;"\"MenuStrip\" = \"\""/"MenuStrip = 1/" -i $pkgdir/opt/cxgames/share/crossover/bottle_data/cxbottle.conf
63 cd $pkgdir/opt/cxgames/bin
64 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" *
65 sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" *
67 cd $pkgdir/opt/cxgames/lib/python
68 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" *.py
69 sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" *.py
71 # Fix Auto update error
72 install -m 644 -D "$srcdir/cxgames.conf" "$pkgdir/opt/cxgames/etc/cxgames.conf"
77 md5sums=('216b60e9839d80ab9d02dc0d67470d29'
78 '0c791f407ac58356d549775d69262b73')