wok-stable diff python/receipt @ rev 110

Fix bash patch
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 04 23:17:57 2008 +0100 (2008-01-04)
parents
children 17a39e4461e4
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python/receipt	Fri Jan 04 23:17:57 2008 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="python"
     1.7 +VERSION="2.5.1"
     1.8 +CATEGORY="extra"
     1.9 +SHORT_DESC="The Python programming language."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +SOURCE="Python"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.13 +WEB_SITE="http://www.python.org/"
    1.14 +WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +	./configure --enable-shared --with-ncurses \
    1.21 +	--prefix=/usr --infodir=/usr/share/info \
    1.22 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.23 +	make
    1.24 +	make DESTDIR=$PWD/_pkg install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr
    1.31 +	cp -a $_pkg/usr/bin $fs/usr
    1.32 +	cp -a $_pkg/usr/lib $fs/usr
    1.33 +	rm -f $fs/usr/bin/*-config
    1.34 +	strip -s $fs/usr/bin/* 2>/dev/null
    1.35 +	strip -s $fs/usr/lib/*.so* 2>/dev/null
    1.36 +	
    1.37 +	# Python can be symlink to python2.5 ???
    1.38 +	#cd $fs/usr/bin
    1.39 +	#rm python && ln -s python2.5 python
    1.40 +}
    1.41 +