Cedega
From FrugalWiki
First we make a snapshot form TransGaming's CVS, you'll need the mksnapshot script:
#!/bin/sh # here this tooks ~8 mins cvs -d:pserver:cvs:cvs@cvs.transgaming.org:/cvsroot login cvs -z3 -d:pserver:cvs@cvs.transgaming.org:/cvsroot co winex tar cvjf cedega-`date +%Y%m%d`.tar.bz2 winex/ rm -rf winex
Then create the snapshot:
./mksnapshot
Now you have the snapshot, you'll need the FrugalBuild and others scrips:
FrugalBuild:
# Last Modified: Sat, 21 May 2005 14:56:38 +0200 # Compiling Time: ~15 minutes # Contributor: VMiklos <mamajom@axelero.hu> pkgname=cedega pkgver=`date +%Y%m%d` pkgrel=1 pkgdesc="TransGaming's fork of WINE, for running games written for Windows." url="http://www.transgaming.org" depends=('freetype2' 'tk' 'cups') groups=('xapps-extra') install=$pkgname.install up2date=$pkgver source=($pkgname-$pkgver.tar.bz2 $pkgname-cdrive.tar.bz2 $pkgname) license="Aladdin Free Public License" # you MUST disable ccache if you want cedega to compile build() { Fcd winex ( cd tools mv widl/ppl.l widl/ppl.l.new tail -n1388 widl/ppl.l.new > widl/ppl.l mv wrc/ppl.l wrc/ppl.l.new tail -n1388 wrc/ppl.l.new > wrc/ppl.l ) Fprefix=/usr/lib/$pkgname Fconf --enable-pthreads --with-x --enable-opengl make depend make || return 1 Fmkdir $Fprefix /etc/skel Fmakeinstall Fexe /usr/bin/cedega mv $Fsrcdir/.cedega $Fdestdir/etc/skel/ } # vim: ft=sh
cedega:
#!/bin/bash export WINEPREFIX="$HOME/.cedega" /usr/lib/cedega/bin/wine $@
cedega.install:
post_install() { if ! [ `grep '/usr/lib/cedega/lib' etc/ld.so.conf` ]; then echo "/usr/lib/cedega/lib" >>etc/ld.so.conf sbin/ldconfig -r . fi } post_remove() { cat etc/ld.so.conf | grep -v '/usr/lib/cedega/lib' >/tmp/ld.so.conf.new mv /tmp/ld.so.conf.new etc/ld.so.conf chmod 644 etc/ld.so.conf sbin/ldconfig -r . } op=$1 shift $op $* # vim: ft=sh
You can download the cedega-cdrive.tar.bz2 here.
Then the usual
makepkg -c
should do the task.