wok-next view python-egenix-mx-base/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line source
1 # SliTaz package receipt v2.
3 ORIGIN="egenix-mx-base"
4 PACKAGE="python-egenix-mx-base"
5 VERSION="3.2.9"
6 CATEGORY="python"
7 SHORT_DESC="eGenix.com mx Extension series"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="PSL"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:egenix-mx-base"
14 # pip produce syntax error, use tarball method instead
15 TARBALL="$ORIGIN-$VERSION.tar.gz"
16 WGET_URL="http://downloads.egenix.com/python/$TARBALL"
18 BUILD_DEPENDS="python-dev"
19 SPLIT="$PACKAGE-dev"
21 compile_rules() {
22 # Python3 based compilation produce error
23 python -B setup.py install --root=$install || return 1
25 # move documentation
26 docdir="$install/usr/share/doc/$PACKAGE-$VERSION/"
27 mkdir -p $docdir
28 find $install -type f -name '*.pdf' -exec mv '{}' $docdir \;
29 find $install -type d -name 'Doc' | xargs rmdir
31 # fix permissions
32 find $install -type f -exec chmod g-w,o+r '{}' \; # 664->644; 640->644
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 *-dev)
38 copy @dev
39 ;;
40 *)
41 copy @std
42 DEPENDS="python"
43 ;;
44 esac
45 }