wok annotate python-ldap/receipt @ rev 25403
updated vzctl (3.0.25.1 -> 4.11.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Aug 02 16:35:24 2022 +0100 (2022-08-02) |
parents | ba584564da08 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@3789 | 1 # SliTaz package receipt. |
pascal@3789 | 2 |
pascal@3789 | 3 PACKAGE="python-ldap" |
Hans-G?nter@23502 | 4 VERSION="3.1.0" |
pascal@3789 | 5 CATEGORY="development" |
pascal@3789 | 6 SHORT_DESC="An object-oriented API to access LDAP directory servers." |
pascal@3789 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
Hans-G?nter@23502 | 8 LICENSE="PSL" |
Hans-G?nter@23502 | 9 WEB_SITE="https://www.python-ldap.org/" |
Hans-G?nter@23502 | 10 |
pascal@3789 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23503 | 12 WGET_URL="https://files.pythonhosted.org/packages/source/p/$PACKAGE/$TARBALL" |
pascal@15379 | 13 |
Hans-G?nter@23502 | 14 DEPENDS="cyrus-sasl openldap openssl python" |
Hans-G?nter@23502 | 15 BUILD_DEPENDS="cyrus-sasl-dev openldap-dev openssl-dev python-dev python-setuptools" |
pascal@3789 | 16 |
pascal@24500 | 17 # What is the latest version available today? |
pascal@24500 | 18 current_version() |
pascal@24500 | 19 { |
pascal@24500 | 20 wget -O - https://github.com/python-ldap/python-ldap/releases 2>/dev/null | \ |
pascal@24500 | 21 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' |
pascal@24500 | 22 } |
pascal@24500 | 23 |
pascal@3789 | 24 # Rules to configure and make the package. |
pascal@3789 | 25 compile_rules() |
pascal@3789 | 26 { |
Hans-G?nter@23502 | 27 python setup.py build && |
pascal@15379 | 28 python setup.py install --root=$DESTDIR |
pascal@3789 | 29 } |
pascal@3789 | 30 |
pascal@3789 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3789 | 32 genpkg_rules() |
pascal@3789 | 33 { |
pascal@3789 | 34 mkdir -p $fs/usr |
Hans-G?nter@23502 | 35 cp -a $install/usr/lib $fs/usr |
pascal@3789 | 36 } |