[arch-commits] Commit in pysolfc/repos (2 files)
Eric Bélanger
eric at nymeria.archlinux.org
Mon Sep 16 02:31:55 UTC 2013
Date: Monday, September 16, 2013 @ 04:31:54
Author: eric
Revision: 97271
archrelease: copy trunk to community-staging-any
Added:
pysolfc/repos/community-staging-any/
pysolfc/repos/community-staging-any/PKGBUILD
(from rev 97270, pysolfc/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: pysolfc/repos/community-staging-any/PKGBUILD (from rev 97270, pysolfc/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2013-09-16 02:31:54 UTC (rev 97271)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=pysolfc
+pkgver=2.0
+pkgrel=5
+pkgdesc="PySol (Fan Club edition) is an exciting collection of more than 1000 solitaire games"
+arch=('any')
+url="http://pysolfc.sourceforge.net/"
+license=('GPL3')
+depends=('tk' 'pysol-sound-server' 'python2-pillow')
+source=(http://downloads.sourceforge.net/pysolfc/PySolFC-${pkgver}.tar.bz2)
+sha1sums=('7a11aa04b3f5147396c8b5011228094c10ddc257')
+
+prepare() {
+ cd PySolFC-${pkgver}
+ find . -name \*.py -exec sed -i -e "s|#!/usr/bin/env python|#!/usr/bin/env python2|" {} \;
+ 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
+}
+
+package() {
+ cd PySolFC-${pkgver}
+ python2 setup.py install --root="${pkgdir}"
+ mv "${pkgdir}/usr/bin/pysol.py" "${pkgdir}/usr/bin/pysol"
+}
More information about the arch-commits
mailing list