wok-next diff nicotine+/receipt @ rev 20709

cdrdao: add patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 26 17:09:29 2018 +0300 (2018-05-26)
parents 16df76e1fc6a
children c022997c7a57
line diff
     1.1 --- a/nicotine+/receipt	Fri May 22 17:34:18 2015 +0300
     1.2 +++ b/nicotine+/receipt	Sat May 26 17:09:29 2018 +0300
     1.3 @@ -1,39 +1,26 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="nicotine+"
     1.8  VERSION="1.2.16"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Nicotine+ is a client for the SoulSeek filesharing network."
    1.11 +SHORT_DESC="Nicotine+ is a client for the SoulSeek filesharing network"
    1.12  MAINTAINER="claudinei@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14 +WEB_SITE="http://www.nicotine-plus.org"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.nicotine-plus.org"
    1.18 -WGET_URL="http://ufpr.dl.sourceforge.net/sourceforge/nicotine-plus/$TARBALL"
    1.19 -TAGS="fileshare p2p peer-to-peer"
    1.20 +WGET_URL="$SF_MIRROR/nicotine-plus/$TARBALL"
    1.21  
    1.22 -DEPENDS="gtk+ python pygtk"
    1.23  BUILD_DEPENDS="python-dev pygtk-dev"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 -	python setup.py install --root=$DESTDIR
    1.29 +compile_rules() {
    1.30 +	python setup.py install --root=$DESTDIR || return 1
    1.31 +
    1.32 +	mv $install/usr/bin/nicotine.py $install/usr/bin/nicotine
    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/usr $fs/usr/share $fs/usr/share/nicotine
    1.39 -	cp -a $install/usr/bin $fs/usr
    1.40 -	mv $fs/usr/bin/nicotine.py $fs/usr/bin/nicotine
    1.41 -	cp -a $install/usr/lib $fs/usr
    1.42 -	cp -a $install/usr/share/applications $fs/usr/share
    1.43 -	cp -a $install/usr/share/pixmaps $fs/usr/share
    1.44 -	cp -a $install/usr/share/nicotine/sounds $fs/usr/share/nicotine
    1.45 -
    1.46 -	for lang in de es fr pt_BR; do
    1.47 -		mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
    1.48 -		cp -a $install/usr/share/locale/$lang/LC_MESSAGES/nicotine.mo \
    1.49 -			$fs/usr/share/locale/$lang/LC_MESSAGES
    1.50 -	done
    1.51 +genpkg_rules() {
    1.52 +	copy @std *.mo
    1.53 +	DEPENDS="gtk+ python pygtk"
    1.54 +	TAGS="fileshare p2p peer-to-peer"
    1.55  }