wok-next annotate pysolfc/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents b15beafb58c2
children 5ffe59e2de3a
rev   line source
al@20793 1 # SliTaz package receipt v2.
claudinei@13967 2
claudinei@13967 3 PACKAGE="pysolfc"
claudinei@13967 4 VERSION="2.0"
claudinei@13967 5 CATEGORY="games"
al@21020 6 SHORT_DESC="Extended version of PySol (a solitaire card game)"
claudinei@13967 7 MAINTAINER="claudinei@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
claudinei@13967 9 WEB_SITE="http://sourceforge.net/projects/pysolfc"
claudinei@13967 10
al@20793 11 TARBALL="PySolFC-$VERSION.tar.bz2"
al@20793 12 WGET_URL="$SF_MIRROR/pysolfc/$TARBALL"
claudinei@13967 13
al@20793 14 BUILD_DEPENDS="python tk"
al@20793 15
al@20793 16 compile_rules() {
al@20793 17 find . -name '*.py' -exec \
al@20793 18 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' '{}' \;
al@20793 19
al@21020 20 python -B setup.py install --prefix=$install/usr || return 1
al@20793 21
al@20793 22 mv $install/usr/bin/pysol.py $install/usr/bin/pysol
al@20793 23 sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' $install/usr/bin/pysol
al@20793 24
al@20793 25 # all the next card sets exist in the pysolfc-cardsets package
al@20793 26 rm -r $install/usr/share/PySolFC/cardset-*
claudinei@13967 27 }
claudinei@13967 28
al@20793 29 genpkg_rules() {
al@20793 30 copy @std
al@20793 31 DEPENDS="python tk pysolfc-cardsets"
claudinei@13967 32 }