wok-current annotate snimpy/receipt @ rev 24656

updated iaxmodem (1.3.0 -> 1.3.3)
author Hans-G?nter Theisgen
date Fri Mar 11 07:18:43 2022 +0100 (2022-03-11)
parents 5ea0ce1cecc0
children
rev   line source
pascal@17227 1 # SliTaz package receipt.
pascal@17227 2
pascal@17227 3 PACKAGE="snimpy"
pascal@17227 4 VERSION="0.8.3"
pascal@17227 5 CATEGORY="network"
pascal@17227 6 SHORT_DESC="Interactive SNMP tool with Python."
pascal@17227 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17227 8 LICENSE="ISC"
pascal@17227 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17227 10 WEB_SITE="http://snimpy.readthedocs.org/"
pascal@17227 11 WGET_URL="https://github.com/vincentbernat/snimpy/archive/$VERSION.tar.gz"
pascal@17227 12
pascal@17227 13 DEPENDS="python"
pascal@21581 14 BUILD_DEPENDS="wget python-dev python-setuptools libffi-dev glib"
pascal@17227 15
pascal@24055 16 current_version()
pascal@24055 17 {
pascal@24299 18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 20 }
pascal@24055 21
pascal@17227 22 # Rules to configure and make the package.
pascal@17227 23 compile_rules()
pascal@17227 24 {
pascal@20622 25 sed -i 's|^import snimpy|&, ssl\nssl._create_default_https_context = ssl._create_unverified_context|' \
pascal@20622 26 setup.py
pascal@17227 27 python setup.py build &&
pascal@17227 28 python setup.py install --root=$DESTDIR
pascal@17227 29 }
pascal@17227 30
pascal@17227 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17227 32 genpkg_rules()
pascal@17227 33 {
pascal@17227 34 mkdir -p $fs/usr
pascal@17227 35 cp -a $install/usr/bin $fs/usr
pascal@17227 36 cp -a $install/usr/lib $fs/usr
pascal@17227 37 }
al@18086 38