wok-current annotate python-mpd/receipt @ rev 24568
sokojs: add shrink.sh (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 26 16:37:15 2022 +0000 (2022-02-26) |
parents | 16df76e1fc6a |
children | e717a4953b0e |
rev | line source |
---|---|
jozee@2676 | 1 # SliTaz package receipt. |
jozee@2676 | 2 |
jozee@2676 | 3 PACKAGE="python-mpd" |
slaxemulator@7743 | 4 VERSION="0.3.0" |
jozee@2676 | 5 CATEGORY="multimedia" |
jozee@2676 | 6 SHORT_DESC="Python MPD client library" |
jozee@2676 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15379 | 8 LICENSE="LGPL3" |
jozee@2676 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@16477 | 10 WEB_SITE="https://pypi.python.org/pypi/python-mpd/" |
jozee@2676 | 11 WGET_URL="http://pypi.python.org/packages/source/p/python-mpd/$TARBALL" |
pankso@16477 | 12 HOST_ARCH="i486 arm" |
jozee@2676 | 13 |
pascal@15379 | 14 DEPENDS="python" |
pascal@15379 | 15 BUILD_DEPENDS="python-dev" |
pascal@15379 | 16 |
pascal@24391 | 17 # What is the latest version available today? |
pascal@24391 | 18 current_version() |
pascal@24391 | 19 { |
pascal@24391 | 20 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 21 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 22 } |
pascal@24391 | 23 |
jozee@2676 | 24 # Rules to configure and make the package. |
jozee@2676 | 25 compile_rules() |
jozee@2676 | 26 { |
al@18077 | 27 python setup.py install --prefix=/usr --root="$DESTDIR" |
jozee@2676 | 28 } |
jozee@2676 | 29 |
jozee@2676 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2676 | 31 genpkg_rules() |
jozee@2676 | 32 { |
jozee@2676 | 33 mkdir -p $fs/usr/lib |
pascal@15379 | 34 cp -a $install/usr/lib $fs/usr |
jozee@2676 | 35 } |