wok-next annotate python-packaging/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | c9a7a7b42a86 |
children |
rev | line source |
---|---|
al@20443 | 1 # SliTaz package receipt v2. |
al@20443 | 2 |
al@20972 | 3 ORIGIN="packaging" |
al@20443 | 4 PACKAGE="python-packaging" |
al@21066 | 5 VERSION="18.0" |
al@20443 | 6 CATEGORY="python" |
al@20443 | 7 SHORT_DESC="Core utilities for Python packages" |
al@20443 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@20443 | 9 LICENSE="BSD" |
al@20972 | 10 WEB_SITE="https://pypi.org/project/$ORIGIN/" |
al@20972 | 11 HOST_ARCH="any" |
al@20885 | 12 REPOLOGY="python:packaging" |
al@20443 | 13 |
al@21066 | 14 TARBALL="$ORIGIN-$VERSION.tar.gz" |
al@21066 | 15 WGET_URL="https://pypi.io/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL" |
al@21066 | 16 |
al@20972 | 17 BUILD_DEPENDS="python python-pyparsing python-six \ |
al@20972 | 18 python3 python3-pyparsing python3-six" |
al@20972 | 19 SPLIT="${PACKAGE/python/python3}:3" |
al@20443 | 20 |
al@20443 | 21 compile_rules() { |
al@21066 | 22 python$SET setup.py install --root=$install |
al@21066 | 23 |
al@21066 | 24 find $install -type f -name '*.pyc' -delete |
al@20443 | 25 } |
al@20443 | 26 |
al@20443 | 27 genpkg_rules() { |
al@20443 | 28 copy @std |
al@20972 | 29 py="${PACKAGE%%-*}" # python/python3 |
al@20972 | 30 DEPENDS="$py $py-pyparsing $py-six" |
al@20443 | 31 } |