wok-next view pysolfc/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | 2b9f96603415 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pysolfc"
4 VERSION="2.0"
5 CATEGORY="games"
6 SHORT_DESC="PySolFC is an extended version of PySol (a solitaire card game)"
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://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 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 }