wok-next diff pysolfc/receipt @ rev 20959

Fix minicom
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 06 11:27:41 2018 +0200 (2018-09-06)
parents 2b9f96603415
children d5aab818505e
line diff
     1.1 --- a/pysolfc/receipt	Sat Aug 10 13:52:56 2013 +0000
     1.2 +++ b/pysolfc/receipt	Thu Sep 06 11:27:41 2018 +0200
     1.3 @@ -1,28 +1,32 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="pysolfc"
     1.8 -SOURCE="PySolFC"
     1.9  VERSION="2.0"
    1.10  CATEGORY="games"
    1.11  SHORT_DESC="PySolFC is an extended version of PySol (a solitaire card game)"
    1.12  MAINTAINER="claudinei@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14  WEB_SITE="http://sourceforge.net/projects/pysolfc"
    1.15 -TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.16 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.17  
    1.18 -DEPENDS="python tk"
    1.19 -BUILD_DEPENDS="$DEPENDS"
    1.20 +TARBALL="PySolFC-$VERSION.tar.bz2"
    1.21 +WGET_URL="$SF_MIRROR/pysolfc/$TARBALL"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	python setup.py install --prefix=$install/usr
    1.27 +BUILD_DEPENDS="python tk"
    1.28 +
    1.29 +compile_rules() {
    1.30 +	find . -name '*.py' -exec \
    1.31 +		sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' '{}' \;
    1.32 +
    1.33 +	python setup.py install --prefix=$install/usr || return 1
    1.34 +
    1.35 +	mv $install/usr/bin/pysol.py $install/usr/bin/pysol
    1.36 +	sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' $install/usr/bin/pysol
    1.37 +
    1.38 +	# all the next card sets exist in the pysolfc-cardsets package
    1.39 +	rm -r $install/usr/share/PySolFC/cardset-*
    1.40  }
    1.41  
    1.42 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 -genpkg_rules()
    1.44 -{
    1.45 -	find $install -type f -name "*.pyc" -delete 2>/dev/null
    1.46 -	cp -a $install/* $fs
    1.47 +genpkg_rules() {
    1.48 +	copy @std
    1.49 +	DEPENDS="python tk   pysolfc-cardsets"
    1.50  }