#Previous packager: Dimitris Tzemos pkgname=pysolfc pkgver=2.0 pkgrel=1dj source=(http://downloads.sourceforge.net/pysolfc/PySolFC-${pkgver}.tar.bz2) sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("README" "COPYING" "DOCS") url="http://pysolfc.sourceforge.net/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "pysolfc (a solitaire suite)" "PySolFC is a colection of more than 1000 solitaire card games. It is" "a fork of the no longer maintained PySol Solitaire. There are games" "that use the 52 card International Pattern deck, games for the 78 card" "Tarock deck, eight and ten suite Ganjifa games, Hanafuda games, Matrix" "games, Mahjongg games, and games for an original hexadecimal-based" "deck. PySolFC features a modern look and feel, multiple cardsets and" "backgrounds, sound, unlimited undo, player statistics, and much more." "PySolFC is distributed under the terms of the GNU GPL." ) build() { cd $startdir/src/PySolFC-${pkgver}|| return 1 sed -i 's/pysol.py/pysol/' data/pysol.desktop sed -i 's/import Image/from PIL import Image/' scripts/cardset_viewer.py pysollib/mfxutil.py sed -i 's/import GifImagePlugin/from PIL import GifImagePlugin/' pysollib/mfxutil.py sed -i 's/import PngImagePlugin/from PIL import PngImagePlugin/' pysollib/mfxutil.py sed -i 's/import JpegImagePlugin/from PIL import JpegImagePlugin/' pysollib/mfxutil.py sed -i 's/import BmpImagePlugin/from PIL import BmpImagePlugin/' pysollib/mfxutil.py sed -i 's/import PpmImagePlugin/from PIL import PpmImagePlugin/' pysollib/mfxutil.py python setup.py install --root=$startdir/pkg || exit 1 mv "${PKG}/usr/bin/pysol.py" "${PKG}/usr/bin/pysol" }