wok-next view pysolfc/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | b15beafb58c2 |
children | 5ffe59e2de3a |
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="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 -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 }