wok-current annotate pysolfc/receipt @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (20 months ago) |
parents | 080c1dff8494 |
children |
rev | line source |
---|---|
claudinei@13967 | 1 # SliTaz package receipt. |
claudinei@13967 | 2 |
claudinei@13967 | 3 PACKAGE="pysolfc" |
claudinei@13967 | 4 SOURCE="PySolFC" |
claudinei@13967 | 5 VERSION="2.0" |
claudinei@13967 | 6 CATEGORY="games" |
claudinei@13967 | 7 SHORT_DESC="PySolFC is an extended version of PySol (a solitaire card game)" |
claudinei@13967 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
pascal@25509 | 10 WEB_SITE="https://sourceforge.net/projects/pysolfc/" |
claudinei@13967 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
claudinei@13967 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
claudinei@13967 | 13 |
claudinei@13967 | 14 DEPENDS="python tk" |
claudinei@13967 | 15 BUILD_DEPENDS="$DEPENDS" |
claudinei@13967 | 16 |
pascal@24396 | 17 # What is the latest version available today? |
pascal@24396 | 18 current_version() |
pascal@24396 | 19 { |
pascal@24396 | 20 wget -O - https://sourceforge.net/projects/pysolfc/files/PySolFC/ 2>/dev/null | \ |
pascal@24396 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 22 sed '/scope="row/!d;s|.*/PySolFC/PySolFC-||;s|/.*||;q' |
pascal@24396 | 23 } |
pascal@24396 | 24 |
claudinei@13967 | 25 # Rules to configure and make the package. |
claudinei@13967 | 26 compile_rules() |
claudinei@13967 | 27 { |
claudinei@13967 | 28 python setup.py install --prefix=$install/usr |
claudinei@13967 | 29 } |
claudinei@13967 | 30 |
claudinei@13967 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@13967 | 32 genpkg_rules() |
claudinei@13967 | 33 { |
claudinei@13967 | 34 find $install -type f -name "*.pyc" -delete 2>/dev/null |
claudinei@13967 | 35 cp -a $install/* $fs |
claudinei@13967 | 36 } |