wok-next view pysolfc/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5ffe59e2de3a
children
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/"
10 HOST_ARCH="any"
12 TARBALL="PySolFC-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/pysolfc/$TARBALL"
15 BUILD_DEPENDS="python tk"
17 compile_rules() {
18 find . -name '*.py' -exec \
19 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' '{}' \;
21 python -B setup.py install --prefix=$install/usr || return 1
23 mv $install/usr/bin/pysol.py $install/usr/bin/pysol
24 sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' $install/usr/bin/pysol
26 # all the next card sets exist in the pysolfc-cardsets package
27 rm -r $install/usr/share/PySolFC/cardset-*
28 }
30 genpkg_rules() {
31 copy @std
32 DEPENDS="python tk pysolfc-cardsets"
33 }