updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / lynsol / PKGBUILD
blobd99d5fbe52104a3ca6423fd0ede37b17d1bc3848
1 # Maintainer: archtux <antonio.arias99999@gmail.com>
3 pkgname=lynsol
4 pkgver=1.9
5 pkgrel=1
6 pkgdesc="Solitaire, Jumbo, Freecell, Spider and Ten Across card games"
7 arch=('i686' 'x86_64')
8 url="http://xzcallaway.synthasite.com/cards.php"
9 license=('GPL2')
10 depends=('python-pygame' 'wxpython' 'xchm')
11 source=(http://xzcallaway.synthasite.com/resources/${pkgname}_$pkgver-1_i386.deb)
12 md5sums=('66d3dc0538e5a1469581941c7912cb0b')
14 build() {
15    #Extract debian package
16    bsdtar xf $pkgname*
17    bsdtar xf data.tar.gz -C $pkgdir
19    #Python2 fix
20    export PYTHON="/usr/bin/python2"
21    cd $pkgdir/usr/share/applications
22    sed -i 's_Exec=python_Exec=python2_' Solitaire.desktop
23    cd ../lynsol
24    sed -i 's_/usr/bin/python_/usr/bin/python2_' Look.py Options.py StartTutorial.py tl.py
25    sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' sound.py