wok-next view python-dbus/receipt @ rev 20978

Small improvements
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Sep 27 01:34:11 2018 +0300 (2018-09-27)
parents c9a7a7b42a86
children d5aab818505e
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="pankso@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 }