wok-current annotate urlgrabber/receipt @ rev 25693
Up depends pkgs for cups, need to rebuild it for ssl 3.0
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 24 15:17:37 2024 +0000 (7 months ago) |
parents | 71bc63dce596 |
children |
rev | line source |
---|---|
slaxemulator@7916 | 1 # SliTaz package receipt. |
slaxemulator@7916 | 2 |
slaxemulator@7916 | 3 PACKAGE="urlgrabber" |
Hans-G?nter@22083 | 4 VERSION="4.0.0" |
slaxemulator@7916 | 5 CATEGORY="development" |
Hans-G?nter@22083 | 6 SHORT_DESC="A high-level cross-protocol URL-grabber and Python library." |
slaxemulator@7916 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15352 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@22083 | 9 WEB_SITE="http://urlgrabber.baseurl.org/" |
Hans-G?nter@22083 | 10 |
slaxemulator@7916 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22083 | 12 WGET_URL="${WEB_SITE}download/$TARBALL" |
slaxemulator@7916 | 13 |
Hans-G?nter@22083 | 14 DEPENDS="pycurl python" |
Hans-G?nter@22087 | 15 BUILD_DEPENDS="pycurl python-dev python-setuptools python-six" |
pascal@15352 | 16 |
pascal@24427 | 17 # What is the latest version available today? |
pascal@24427 | 18 current_version() |
pascal@24427 | 19 { |
pascal@24427 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 22 } |
pascal@24427 | 23 |
slaxemulator@7916 | 24 # Rules to configure and make the package. |
slaxemulator@7916 | 25 compile_rules() |
slaxemulator@7916 | 26 { |
pascal@15352 | 27 python setup.py install --prefix=/usr --root=$DESTDIR --optimize=1 |
slaxemulator@7916 | 28 } |
slaxemulator@7916 | 29 |
slaxemulator@7916 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7916 | 31 genpkg_rules() |
slaxemulator@7916 | 32 { |
slaxemulator@7916 | 33 mkdir -p $fs/usr |
Hans-G?nter@22083 | 34 |
Hans-G?nter@22083 | 35 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22083 | 36 cp -a $install/usr/lib $fs/usr |
slaxemulator@7916 | 37 } |