wok-6.x annotate nicotine+/receipt @ rev 24895
libgpod: libplist 2.x support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 08 11:37:28 2022 +0000 (2022-04-08) |
parents | 6c767b8fea7d |
children |
rev | line source |
---|---|
claudinei@2921 | 1 # SliTaz package receipt. |
claudinei@2921 | 2 |
claudinei@2921 | 3 PACKAGE="nicotine+" |
Hans-G?nter@21543 | 4 VERSION="1.4.1" |
claudinei@2955 | 5 CATEGORY="network" |
Hans-G?nter@21543 | 6 TAGS="fileshare p2p peer-to-peer" |
Hans-G?nter@21543 | 7 SHORT_DESC="A client for the SoulSeek filesharing network." |
claudinei@2921 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15584 | 9 LICENSE="GPL3" |
Hans-G?nter@21543 | 10 WEB_SITE="https://www.nicotine-plus.org" |
Hans-G?nter@21543 | 11 |
claudinei@2921 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21543 | 13 WGET_URL="https://github.com/Nicotine-Plus/nicotine-plus/archive/$VERSION.tar.gz" |
pascal@15584 | 14 |
claudinei@2921 | 15 DEPENDS="gtk+ python pygtk" |
claudinei@3301 | 16 BUILD_DEPENDS="python-dev pygtk-dev" |
claudinei@2921 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
claudinei@2921 | 24 # Rules to configure and make the package. |
claudinei@2921 | 25 compile_rules() |
claudinei@2921 | 26 { |
pascal@15584 | 27 python setup.py install --root=$DESTDIR |
claudinei@2921 | 28 } |
claudinei@2921 | 29 |
claudinei@2921 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@2921 | 31 genpkg_rules() |
claudinei@2921 | 32 { |
Hans-G?nter@21543 | 33 mkdir -p $fs/usr/share/nicotine |
Hans-G?nter@21543 | 34 |
Hans-G?nter@21543 | 35 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21544 | 36 # mv $fs/usr/bin/nicotine.py $fs/usr/bin/nicotine |
Hans-G?nter@21543 | 37 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21543 | 38 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@21543 | 39 cp -a $install/usr/share/icons $fs/usr/share |
pascal@15584 | 40 cp -a $install/usr/share/nicotine/sounds $fs/usr/share/nicotine |
claudinei@3312 | 41 |
Hans-G?nter@21543 | 42 for lang in de es fr pt_BR |
Hans-G?nter@21543 | 43 do |
claudinei@3312 | 44 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
pascal@15584 | 45 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/nicotine.mo \ |
claudinei@3312 | 46 $fs/usr/share/locale/$lang/LC_MESSAGES |
Hans-G?nter@21543 | 47 done |
claudinei@2921 | 48 } |