wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="kivy"
4 SOURCE="Kivy"
5 VERSION="1.10.1"
6 CATEGORY="development"
7 SHORT_DESC="Cross platform library for rapid development of applications."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="LGPL3"
10 WEB_SITE="https://kivy.org/"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="glew-dev gstreamer-1.0-dev libsdl2-dev libsdl2-image-dev
17 libsdl2-mixer-dev libsdl2-ttf-dev mesa-dev python-cython python-dev"
19 current_version()
20 {
21 wget -O - https://github.com/kivy/kivy 2>/dev/null | \
22 sed '/releases.tag/!d;s|.*/tag.v*\(.*\)".*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 }