wok annotate python-kiwi/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents 6135577f4d08
children
rev   line source
claudinei@3832 1 # SliTaz package receipt.
claudinei@3832 2
claudinei@3832 3 PACKAGE="python-kiwi"
claudinei@3832 4 SOURCE="kiwi"
claudinei@14885 5 VERSION="1.9.29"
claudinei@3832 6 CATEGORY="development"
claudinei@3832 7 SHORT_DESC="A framework for python applications with graphical user interfaces."
claudinei@3832 8 MAINTAINER="claudinei@slitaz.org"
pascal@14996 9 LICENSE="LGPL2.1"
claudinei@14885 10 SUGGESTED="zopeinterface libglade"
claudinei@14885 11 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@20679 12 WEB_SITE="https://pypi.org/project/$SOURCE/"
pascal@17869 13 WGET_URL="https://download.gnome.org/sources/kiwi/${VERSION%.*}/$TARBALL"
claudinei@3832 14
pankso@9894 15 DEPENDS="python gtk+ pygobject pygtk"
claudinei@14885 16 BUILD_DEPENDS="python-dev gtk+-dev pygobject-dev pygtk-dev wget"
pankso@9894 17
pascal@24111 18 current_version()
pascal@24111 19 {
pascal@24111 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 21 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 22 }
pascal@24111 23
claudinei@3832 24 # Rules to configure and make the package.
claudinei@3832 25 compile_rules()
claudinei@3832 26 {
slaxemulator@9011 27 python setup.py install --root=$DESTDIR
claudinei@3832 28 }
claudinei@3832 29
claudinei@3832 30 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3832 31 genpkg_rules()
claudinei@3832 32 {
claudinei@14885 33 cp -a $install/usr $fs
claudinei@3832 34 }
al@18077 35