wok-current annotate pycurl/receipt @ rev 24459

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 11:53:30 2022 +0000 (2022-02-16)
parents f6e3d297bb6f
children affc6fdda56c
rev   line source
slaxemulator@7569 1 # SliTaz package receipt.
slaxemulator@7569 2
slaxemulator@7569 3 PACKAGE="pycurl"
Hans-G?nter@23460 4 VERSION="7.43.0.3"
slaxemulator@7569 5 CATEGORY="development"
slaxemulator@7569 6 SHORT_DESC="A Python interface to libcurl."
slaxemulator@7569 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14996 8 LICENSE="LGPL2.1"
Hans-G?nter@23460 9 WEB_SITE="http://pycurl.io"
Hans-G?nter@23460 10
slaxemulator@7569 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23460 12 WGET_URL="https://dl.bintray.com/$PACKAGE/$PACKAGE/$TARBALL"
slaxemulator@7569 13
Hans-G?nter@23460 14 DEPENDS="libcurl python"
Hans-G?nter@23460 15 BUILD_DEPENDS="curl-dev openssl-dev python-dev"
pascal@14996 16
pascal@24459 17 # What is the latest version available today?
pascal@24459 18 current_version()
pascal@24459 19 {
pascal@24459 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24459 21 sed '/PYCURL [0-9]/!d;s|.*CURL ||;s|<.*||'
pascal@24459 22 }
pascal@24459 23
slaxemulator@7569 24 # Rules to configure and make the package.
slaxemulator@7569 25 compile_rules()
slaxemulator@7569 26 {
Hans-G?nter@23460 27 python setup.py install \
Hans-G?nter@23460 28 --curl-config=/usr/bin/curl-config \
Hans-G?nter@23460 29 --prefix $DESTDIR/usr
slaxemulator@7569 30 }
slaxemulator@7569 31
slaxemulator@7569 32 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7569 33 genpkg_rules()
slaxemulator@7569 34 {
slaxemulator@7569 35 mkdir -p $fs/usr
Hans-G?nter@23460 36 cp -a $install/usr/lib $fs/usr
slaxemulator@7569 37 }