wok-current rev 7797

pyneighborhood: tiny edits
author Paul Issott <paul@slitaz.org>
date Fri Dec 24 13:30:35 2010 +0000 (2010-12-24)
parents 0e2015438912
children 9250536d802e
files pyneighborhood/receipt
line diff
     1.1 --- a/pyneighborhood/receipt	Fri Dec 24 13:23:49 2010 +0000
     1.2 +++ b/pyneighborhood/receipt	Fri Dec 24 13:30:35 2010 +0000
     1.3 @@ -5,8 +5,8 @@
     1.4  CATEGORY="network"
     1.5  SHORT_DESC="GUI frontend for samba tools (smbclient, smbmount, etc)."
     1.6  MAINTAINER="paul@slitaz.org"
     1.7 -DEPENDS="python pygtk samba gettext libffi"
     1.8 -BUILD_DEPENDS="python python-dev"
     1.9 +DEPENDS="python pygtk samba"
    1.10 +BUILD_DEPENDS="python python-dev gettext wget"
    1.11  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12  WEB_SITE="https://launchpad.net/pyneighborhood"
    1.13  WGET="$WEB_SITE/${VERSION%.*}/$VERSION/+download/$TARBALL"
    1.14 @@ -17,23 +17,25 @@
    1.15  	if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.16  		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.17  	else
    1.18 -		[ -L /usr/bin/wget ] || tazpkg get-install wget --forced
    1.19 +		# [ -L /usr/bin/wget ] || tazpkg get-install wget --forced
    1.20  		wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
    1.21  		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.22  	fi
    1.23  
    1.24  	cd $src
    1.25 +	# hack Makefile
    1.26 +	sed -i 's/--prefix=/--root=/' Makefile
    1.27  	# hack .desktop file
    1.28  	sed -i 's/Application;Network;System;Utility/Application;System;/' pyNeighborhood.desktop
    1.29  
    1.30 -	python setup.py build &&
    1.31 -	python setup.py install --root=$PWD/_pkg
    1.32 +	make DESTDIR=$PWD/_pkg install
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36  genpkg_rules()
    1.37  {
    1.38 -	mkdir -p $fs
    1.39 +	mkdir -p $fs/usr
    1.40  	cp -a $_pkg/usr $fs
    1.41 +	cp -a $_pkg/share $fs/usr
    1.42  }
    1.43