wok annotate sip/receipt @ rev 25532

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:46:05 2023 +0000 (20 months ago)
parents a77f941b8df6
children 1fdbf2cdfae4
rev   line source
allan316@3295 1 # SliTaz package receipt.
allan316@3295 2
allan316@3295 3 PACKAGE="sip"
Hans-G?nter@25306 4 VERSION="4.19.25" # last version for Python 2
allan316@3295 5 CATEGORY="development"
Hans-G?nter@21911 6 SHORT_DESC="C/C++ Bindings Generator for Python v2 and v3."
allan316@3295 7 MAINTAINER="allan316@gmail.com"
pascal@15593 8 LICENSE="GPL2 GPL3"
Hans-G?nter@21911 9 WEB_SITE="https://www.riverbankcomputing.com/software/sip/intro"
Hans-G?nter@25306 10 REPOLOGY="python:sip"
Hans-G?nter@21911 11
allan316@3295 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21911 13 #WGET_URL="$SF_MIRROR/pyqt/$TARBALL"
Hans-G?nter@21911 14 WGET_URL="https://www.riverbankcomputing.com/static/Downloads/$PACKAGE/$VERSION/$TARBALL"
allan316@3295 15
Hans-G?nter@21911 16 DEPENDS="gcc-lib-base python"
slaxemulator@11031 17 BUILD_DEPENDS="python-dev"
slaxemulator@11031 18
pascal@24348 19 # What is the latest version available today?
pascal@24348 20 current_version()
pascal@24348 21 {
pascal@24348 22 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24348 23 sed '/SIP/!d;/eleased/!d;s|.*SIP v||;s| .*||;q'
pascal@24348 24 }
pascal@24348 25
allan316@3295 26 # Rules to configure and make the package.
allan316@3295 27 compile_rules()
allan316@3295 28 {
Hans-G?nter@21911 29 python configure.py &&
pascal@5007 30 make &&
Hans-G?nter@25306 31 make install DESTDIR=$DESTDIR
allan316@3295 32 }
allan316@3295 33
allan316@3295 34 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3295 35 genpkg_rules()
allan316@3295 36 {
Hans-G?nter@25306 37 cook_copy_folders bin
Hans-G?nter@25306 38 cook_copy_folders lib
allan316@3295 39 }