Advertisement
Narga

crossover-standard 10.2.0

Mar 22nd, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.57 KB | None | 0 0
  1. # Maintainer: ying
  2. # Contributer: ying, Nguyễn Đình Quân <dinhquan@narga.net>
  3.  
  4. pkgname=crossover
  5. pkgver=10.2.0
  6. pkgrel=2
  7. pkgdebrel=1
  8. pkgdesc="Run Windows Programs on Linux"
  9. arch=('i686' 'x86_64')
  10. url="http://www.codeweavers.com"
  11. license=('custom')
  12. makedepends=('binutils' 'tar')
  13. install=${pkgname}.install
  14. conflicts=('crossover')
  15. source=("http://media.codeweavers.com/pub/crossover/cxlinux/demo/crossover-standard-demo_${pkgver}-${pkgdebrel}_i386.deb" cxoffice.conf)
  16.  
  17.  
  18. if [ $CARCH = 'i686' ] ;
  19. then
  20.     depends=('alsa-lib' 'libsm' 'libxext' 'libxrandr' 'libice' 'pygtk' 'desktop-file-utils' 'fontconfig' 'libxcursor' 'libxdamage' 'libxxf86dga' 'mesa' )
  21.     optdepends=('libxcursor: coloured mouse pointer support'
  22.       'libxi: enables joystick and tablet support'
  23.       'libxinerama: enables spanning multiple screens'
  24.       'openssl:  support for secure Internet communication'
  25.       'libcups: printing support'
  26.       'libpng: enable PNG images'
  27.       'libjpeg: enable JPEG images'
  28.       'libxxf86vm: perform gamma adjustments'
  29.       'hal: automatically detect CD-ROMs, DVDs, and USB keys'
  30.       'unzip: required to install Guild Wars, automatic installer extraction'
  31.       )
  32. else
  33.     depends=('fontconfig' 'desktop-file-utils' 'alsa-lib' 'lib32-alsa-lib' 'lib32-fontconfig' 'lib32-libxcursor' 'libxxf86dga' 'libxrandr' 'libxdamage' 'lib32-libxdamage' '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')
  34.     optdepends=('lib32-nvidia-utils: enables 3D under nvidia cards'
  35.       'lib32-catalyst-utils: enables 3D under ati cards'
  36.       'lib32-libxcursor: coloured mouse pointer support'
  37.       'lib32-libxinerama: enables spanning multiple screens'
  38.       'lib32-openssl:  support for secure Internet communication'
  39.       'lib32-libcups: printing support'
  40.       'lib32-libxxf86vm: perform gamma adjustments'
  41.       'lib32-libxi: enables joystick and tablet support'
  42.       'lib32-libpng: enable PNG images'
  43.       'lib32-libjpeg: enable JPEG images'
  44.       'lib32-hal: automatically detect CD-ROMs, DVDs, and USB keys'
  45.       'unzip: required to install Guild Wars, automatic installer extraction'  
  46.     )
  47. fi
  48.  
  49.  
  50.  
  51.  
  52. build() {
  53.     cd $srcdir/
  54.     ar -p crossover-standard-demo_${pkgver}-${pkgdebrel}_i386.deb data.tar.gz | tar zxf - -C "${pkgdir}" || return 1
  55.  
  56.     if [ $CARCH = 'i686' ] ; then
  57.         rm -fr $pkgdir/opt/cxoffice/lib/nsplugin-linux64.so
  58.     fi
  59.  
  60.     rm $pkgdir/opt/cxoffice/doc # remove symbolic link
  61.     mkdir $pkgdir/opt/cxoffice/doc # create real directory
  62.     mv $pkgdir/usr/share/doc/crossover-standard-demo/* $pkgdir/opt/cxoffice/doc
  63.     gzip -d $pkgdir/opt/cxoffice/doc/license.txt.gz
  64.     rm $pkgdir/usr -r
  65.     install -m 644 -D $pkgdir/opt/cxoffice/doc/license.txt $pkgdir/usr/share/licenses/crossover/license
  66.     sed s/\;\;"\"MenuRoot\" = \"\""/"MenuRoot = Windows Games/" -i $pkgdir/opt/cxoffice/share/crossover/bottle_data/cxbottle.conf
  67.     sed s/\;\;"\"MenuStrip\" = \"\""/"MenuStrip = 1/" -i $pkgdir/opt/cxoffice/share/crossover/bottle_data/cxbottle.conf
  68.  
  69.      Sed for Python2
  70.     cd $pkgdir/opt/cxoffice/bin
  71.     sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" *
  72.     sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" *
  73.  
  74.     #cd $pkgdir/opt/cxoffice/lib/python
  75.     #sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" *.py
  76.     #sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" *.py
  77.  
  78.     # Fix Auto update error
  79.     install -m 644 -D "$srcdir/cxoffice.conf" "$pkgdir/opt/cxoffice/etc/cxoffice.conf"
  80. }
  81.  
  82.  
  83. md5sums=('909be4ed18ce982a3d82bf8520f638e4'
  84.          'd098b13387eb444179d6effc5d6a4600')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement