wok-next annotate python-setuptools/receipt @ rev 21051

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 30 01:34:53 2018 +0200 (2018-11-30)
parents f47adfbeb944
children 1ee5239fdfdc
rev   line source
al@20973 1 # SliTaz package receipt v2.
al@20973 2
al@20973 3 ORIGIN="setuptools"
al@20973 4 PACKAGE="python-setuptools"
al@20977 5 VERSION="40.4.3"
al@20973 6 CATEGORY="python"
al@20973 7 SHORT_DESC="Easily download, build, install, upgrade, and uninstall Python packages"
al@20973 8 MAINTAINER="al.bobylev@gmail.com"
al@20973 9 LICENSE="MIT"
al@20973 10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
al@20973 11 HOST_ARCH="any"
al@20973 12 REPOLOGY="python:setuptools"
al@20973 13
al@20977 14 TARBALL="$ORIGIN-$VERSION.tar.gz"
al@20977 15 WGET_URL="https://github.com/pypa/setuptools/archive/v$VERSION.tar.gz"
al@20977 16
al@20973 17 BUILD_DEPENDS="python python3"
al@20973 18 SPLIT="${PACKAGE/python/python3}:3"
al@20973 19
al@20973 20 compile_rules() {
al@20977 21 python$SET bootstrap.py &&
al@20977 22 python$SET -B setup.py install --root=$install
al@20977 23
al@20977 24 find $install -type f -exec chmod g-w '{}' \; # 664->644
al@20973 25 }
al@20973 26
al@20973 27 genpkg_rules() {
al@20973 28 copy @std
al@20973 29 py=${PACKAGE%%-*} # python/python3
al@20973 30 DEPENDS="$py"
al@20973 31 }