# SliTaz package receipt. PACKAGE="scons" VERSION="2.3.4" CATEGORY="development" SHORT_DESC="SCons is an Open Source software construction tool." MAINTAINER="chadi.elahmad@gmail.com" LICENSE="MIT" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://www.scons.org/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python python-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/scons/files/scons/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/scons/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { mkdir -p $DESTDIR/usr/share python setup.py install \ --standard-lib \ --prefix=$DESTDIR/usr mv $DESTDIR/usr/man $DESTDIR/usr/share } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr }