wok-next annotate pysolfc/receipt @ rev 21057

Deal with HOST_ARCH="any"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 03 14:47:30 2018 +0200 (2018-12-03)
parents 5ffe59e2de3a
children
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"
al@21032 9 WEB_SITE="https://sourceforge.net/projects/pysolfc/"
al@21057 10 HOST_ARCH="any"
claudinei@13967 11
al@20793 12 TARBALL="PySolFC-$VERSION.tar.bz2"
al@20793 13 WGET_URL="$SF_MIRROR/pysolfc/$TARBALL"
claudinei@13967 14
al@20793 15 BUILD_DEPENDS="python tk"
al@20793 16
al@20793 17 compile_rules() {
al@20793 18 find . -name '*.py' -exec \
al@20793 19 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' '{}' \;
al@20793 20
al@21020 21 python -B setup.py install --prefix=$install/usr || return 1
al@20793 22
al@20793 23 mv $install/usr/bin/pysol.py $install/usr/bin/pysol
al@20793 24 sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' $install/usr/bin/pysol
al@20793 25
al@20793 26 # all the next card sets exist in the pysolfc-cardsets package
al@20793 27 rm -r $install/usr/share/PySolFC/cardset-*
claudinei@13967 28 }
claudinei@13967 29
al@20793 30 genpkg_rules() {
al@20793 31 copy @std
al@20793 32 DEPENDS="python tk pysolfc-cardsets"
claudinei@13967 33 }