wok-next view python-dbus/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 2949147cd6ec
children
line source
1 # SliTaz package receipt v2.
3 ORIGIN="dbus-python"
4 PACKAGE="python-dbus"
5 VERSION="1.2.8"
6 CATEGORY="system-tools"
7 SHORT_DESC="Python bindings for libdbus"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:dbus-python"
14 BUILD_DEPENDS="python-dev python3-dev dbus-dev glib-dev"
15 SPLIT="$PACKAGE-dev \
16 ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
18 # Python packages name should start with "python-", but "python-dbus-python"
19 # is pretty ugly name, so strip it to "python-dbus"
21 compile_rules() {
22 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION || return 1
24 # fix installation
25 mv $install/tmp/pip-*/dbus-python/build/lib.*/* \
26 $install/usr/lib/python*/site-packages/
27 rm -r $install/tmp
29 # it don't follow --no-compile option
30 find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 *-dev)
36 copy @dev
37 DEPENDS="${PACKAGE%%-dev} dbus-dev"
38 ;;
39 *)
40 copy @std
41 py=${PACKAGE%%-*} # python/python3
42 DEPENDS="$py dbus glib"
43 ;;
44 esac
45 }