wok-6.x annotate scons/receipt @ rev 25530
Up perl-io (1.51)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 09:07:28 2023 +0000 (20 months ago) |
parents | 05c8d8d9d934 |
children |
rev | line source |
---|---|
pascal@1136 | 1 # SliTaz package receipt. |
pascal@1136 | 2 |
pascal@1136 | 3 PACKAGE="scons" |
devl547@17614 | 4 VERSION="2.3.4" |
pascal@1136 | 5 CATEGORY="development" |
pascal@1136 | 6 SHORT_DESC="SCons is an Open Source software construction tool." |
pascal@1136 | 7 MAINTAINER="chadi.elahmad@gmail.com" |
pascal@15593 | 8 LICENSE="MIT" |
pascal@1136 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@23974 | 10 WEB_SITE="https://www.scons.org/" |
pankso@4187 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15593 | 12 |
pascal@15593 | 13 DEPENDS="python" |
pascal@15593 | 14 BUILD_DEPENDS="python python-dev" |
pascal@1136 | 15 |
pascal@24348 | 16 # What is the latest version available today? |
pascal@24348 | 17 current_version() |
pascal@24348 | 18 { |
pascal@24348 | 19 wget -O - https://sourceforge.net/projects/scons/files/scons/ 2>/dev/null | \ |
pascal@24348 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24348 | 21 sed '/scope="row/!d;s|.*/scons/||;s|/.*||;q' |
pascal@24348 | 22 } |
pascal@24348 | 23 |
pascal@1136 | 24 # Rules to configure and make the package. |
pascal@1136 | 25 compile_rules() |
pascal@1136 | 26 { |
pascal@19294 | 27 mkdir -p $DESTDIR/usr/share |
pascal@1136 | 28 python setup.py install \ |
pascal@1136 | 29 --standard-lib \ |
slaxemulator@10973 | 30 --prefix=$DESTDIR/usr |
pascal@19294 | 31 mv $DESTDIR/usr/man $DESTDIR/usr/share |
pascal@1136 | 32 } |
pascal@1136 | 33 |
pascal@1136 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1136 | 35 genpkg_rules() |
pascal@1136 | 36 { |
pankso@4187 | 37 mkdir -p $fs/usr |
pascal@15593 | 38 cp -a $install/usr/bin $fs/usr |
pascal@15593 | 39 cp -a $install/usr/lib $fs/usr |
pascal@1136 | 40 } |