wok-next view pysolfc/receipt @ rev 21032

Fix some homepages: follow HTTP redirections.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 03 17:26:00 2018 +0200 (2018-11-03)
parents d5aab818505e
children 0cbe4b1f2230
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pysolfc"
4 VERSION="2.0"
5 CATEGORY="games"
6 SHORT_DESC="Extended version of PySol (a solitaire card game)"
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://sourceforge.net/projects/pysolfc/"
11 TARBALL="PySolFC-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/pysolfc/$TARBALL"
14 BUILD_DEPENDS="python tk"
16 compile_rules() {
17 find . -name '*.py' -exec \
18 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' '{}' \;
20 python -B setup.py install --prefix=$install/usr || return 1
22 mv $install/usr/bin/pysol.py $install/usr/bin/pysol
23 sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' $install/usr/bin/pysol
25 # all the next card sets exist in the pysolfc-cardsets package
26 rm -r $install/usr/share/PySolFC/cardset-*
27 }
29 genpkg_rules() {
30 copy @std
31 DEPENDS="python tk pysolfc-cardsets"
32 }