wok-next view python-kiwi/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 c022997c7a57
children
line source
1 # SliTaz package receipt v2.
3 ORIGIN="kiwi"
4 PACKAGE="python-kiwi"
5 VERSION="9.16.14"
6 CATEGORY="python"
7 SHORT_DESC="KIWI - Appliance Builder (next generation)"
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="LGPL2.1"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:kiwi"
14 TARBALL="$ORIGIN-$VERSION.tar.gz"
15 WGET_URL="https://files.pythonhosted.org/packages/source/${ORIGIN:0:1}/$ORIGIN/$TARBALL"
17 BUILD_DEPENDS="python-dev python-docopt python-future python-lxml \
18 python-pyyaml python-requests python-six python-xattr \
19 python3-dev python3-docopt python3-future python3-lxml python3-pyyaml \
20 python3-requests python3-six python3-xattr"
21 SPLIT="${PACKAGE/python/python3}:3"
23 compile_rules() {
24 # pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
26 # pip failed because tools not compiled before installing,
27 # so using `python ... build` and then `python ... install` to solve it.
28 python$SET -B setup.py build &&
29 python$SET -B setup.py install --root=$install
31 find $install -type f -exec chmod g-w '{}' \; # 664 -> 644
32 }
34 genpkg_rules() {
35 copy @std
36 py=${PACKAGE%%-*} # python/python3
37 DEPENDS="$py $py-docopt $py-future $py-lxml $py-pyyaml $py-requests \
38 $py-six $py-xattr"
39 }