# HG changeset patch # User Christopher Rogers # Date 1291222157 0 # Node ID 4387a98222dcd3e702282db49c72cff4e19627be # Parent 5018a93309ab4b5ebf7cc92ea4efa12ad1b3fa98 Fix removing pyconfig.h file from python-dev. diff -r 5018a93309ab -r 4387a98222dc python-dev/receipt --- a/python-dev/receipt Wed Dec 01 15:49:29 2010 +0100 +++ b/python-dev/receipt Wed Dec 01 16:49:17 2010 +0000 @@ -13,11 +13,12 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { + python_version=${VERSION:0:3} mkdir -p $fs/usr/bin - cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/include $fs/usr - cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/bin/*-config $fs/usr/bin + cp -a $WOK/$WANTED/$SOURCE-$python_version/_pkg/usr/include $fs/usr + cp -a $WOK/$WANTED/$SOURCE-$python_version/_pkg/usr/bin/*-config $fs/usr/bin chmod 755 $fs/usr/bin/*-config # in python package now - rm $fs/usr/include/${PACKAGE}${VERSION%.*}/pyconfig.h + rm $fs/usr/include/${WANTED}$python_version/pyconfig.h }