wok rev 9008
python-gazpacho: remove LOCALEDIR path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 03 18:20:33 2011 +0100 (2011-03-03) |
parents | 677d8254b55c |
children | 744ed2c8cde8 |
files | python-gazpacho/receipt |
line diff
1.1 --- a/python-gazpacho/receipt Thu Mar 03 12:09:15 2011 +0000 1.2 +++ b/python-gazpacho/receipt Thu Mar 03 18:20:33 2011 +0100 1.3 @@ -17,21 +17,18 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 - python setup.py install --root=$PWD/_pkg 1.8 + python setup.py install --root=$_pkg || return 1 1.9 + mkdir -p $_pkg/usr/share/locale/pt 1.10 + cp locale/fr $_pkg/usr/share/locale 1.11 + cp locale/pt_BR/LC_MESSAGES $_pkg/usr/share/locale/pt 1.12 } 1.13 1.14 # Rules to gen a SliTaz package suitable for Tazpkg. 1.15 genpkg_rules() 1.16 { 1.17 - LOCALEDIR="$WOK/$PACKAGE/$SOURCE-$VERSION/locale" 1.18 - for file in `find $_pkg | grep 'pyc$'`; do 1.19 - rm $file 1.20 - done 1.21 mkdir -p $fs/usr/share/locale/pt 1.22 cp -a $_pkg/usr/bin $fs/usr 1.23 cp -a $_pkg/usr/lib $fs/usr 1.24 cp -a $_pkg/usr/share $fs/usr 1.25 - cp -a $LOCALEDIR/fr $fs/usr/share/locale 1.26 - cp -a $LOCALEDIR/pt_BR/LC_MESSAGES $fs/usr/share/locale/pt 1.27 } 1.28