wok annotate kivy/receipt @ rev 24497

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 14:19:02 2022 +0000 (2022-02-19)
parents b1276b2c9dc1
children 82d54eca72be
rev   line source
pascal@13740 1 # SliTaz package receipt.
pascal@13740 2
pascal@13740 3 PACKAGE="kivy"
pascal@13740 4 SOURCE="Kivy"
Hans-G?nter@22371 5 VERSION="1.10.1"
pascal@13740 6 CATEGORY="development"
pascal@13740 7 SHORT_DESC="Cross platform library for rapid development of applications."
pascal@13740 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14997 9 LICENSE="LGPL3"
pascal@20669 10 WEB_SITE="https://kivy.org/"
Hans-G?nter@22371 11
pascal@13740 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@22371 13 WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@13740 14
pascal@13740 15 DEPENDS="python"
Hans-G?nter@22372 16 BUILD_DEPENDS="glew-dev gstreamer-1.0-dev libsdl2-dev libsdl2-image-dev
Hans-G?nter@22372 17 libsdl2-mixer-dev libsdl2-ttf-dev mesa-dev python-cython python-dev"
pascal@13740 18
pascal@24083 19 current_version()
pascal@24083 20 {
pascal@24083 21 wget -O - https://github.com/kivy/kivy 2>/dev/null | \
pascal@24083 22 sed '/releases.tag/!d;s|.*/tag.v*\(.*\)".*|\1|;q'
pascal@24083 23 }
pascal@24083 24
pascal@13740 25 # Rules to configure and make the package.
pascal@13740 26 compile_rules()
pascal@13740 27 {
pascal@13740 28 python setup.py build &&
pascal@13740 29 python setup.py install --root=$DESTDIR
pascal@13740 30 }
pascal@13740 31
pascal@13740 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13740 33 genpkg_rules()
pascal@13740 34 {
pascal@13740 35 cp -a $install/* $fs
pascal@13740 36 }