updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / cedega / PKGBUILD
blob10443a2c07e8e84523aaec1adb963e02fe346e67
1 # Maintainer: Peter Lewis <prlewis@letterboxes.org>
2 # Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
3 # Contributor: Link Dupont <link@subpop.net>
4 # Contributor: Peter Johansson <pete@unlogical.net>
6 pkgname=cedega
7 pkgver=011006
8 pkgrel=3
9 arch=('i686')
10 pkgdesc="A program that lets you play Windows games in Linux - GUI only"
11 url="http://www.cedega.com/"
12 license=('custom')
13 depends=('python2' 'alsa-lib' 'libjpeg' 'pygtk' 'dbus-python')
14 options=('!strip')
16 source=('license.txt' 'cedega-arch.patch')
17 md5sums=('225e6f440847e0b6c1630bed1f1771e2'
18          '8b8c32c3bd7b601802feffbff727af8d')
19 install=('cedega.install')
21 build() {
22   cd $srcdir
24   echo
25   echo "ATTENTION: Parts of Cedega are NOT free software!"
26   echo "These parts cannot be redistributed, by ArchLinux or anyone else."
27   echo "If you decide to install this package, then you must first read and agree to the various licences which apply."
28   echo
29   echo "Press enter to display the licence agreement. When you have finished reading, hit q to return here."
30   read
31   cat license.txt | more
32   echo 
33   echo
34   echo
35   echo "Only if you have the right to use Cedega on this machine, and agree with the licences, should you install this software."
36   echo
37   echo "Do you assert that this is true? [y/n]"
38   read answer
40   while test -z "$answer"; do
41     echo "You must answer y or n."
42     echo "Do you assert that this is true? [y/n]"
43     read answer
44   done
46   if [ $answer != "y" ] && [ $answer != "Y" ]; then
47     echo "You did not answer yes, therefore installation will abort!"
48     return 1
49   fi
51   echo "You are asserting that you have the right to use Cedega on this machine, and agree to its licences. Installation continuing..."
53   wget http://www.cedega.com/downloads/packages/cedega-$pkgver.tgz
54   bsdtar -x -f cedega-$pkgver.tgz
56  cd $srcdir
57  patch -p0 < cedega-arch.patch
60 package() {
61   cd $srcdir
62   cp -R usr $pkgdir
63   install -m 644 -D $srcdir/license.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE