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

Random updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Sep 05 15:26:05 2018 +0300 (2018-09-05)
parents
children c9a7a7b42a86
line source
1 # SliTaz package receipt v2.
3 PACKAGE="python-dbus"
4 VERSION="latest"
5 CATEGORY="system-tools"
6 SHORT_DESC="D-Bus Python bindings"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://freedesktop.org/wiki/Software/DBusBindings"
10 REPOLOGY="python:dbus-python"
12 BUILD_DEPENDS="dbus-dev glib-dev python-dev dbus-glib-dev"
13 SPLIT="$PACKAGE-dev"
15 # Python packages name should start with "python-", but "python-dbus-python"
16 # is pretty ugly name, so strip it to "python-dbus"
18 compile_rules() {
19 pip install --no-compile --root=$DESTDIR dbus-python &&
21 # fix installation
22 mv $install/tmp/pip-build-*/dbus-python/build/lib.*/* \
23 $install/usr/lib/python2.7/site-packages/ &&
24 rm -r $install/tmp
25 }
27 genpkg_rules() {
28 VERSION=$(sed -n '/^Successfully installed/ s|.*dbus-python-||p' $LOGS/${PACKAGE%-dev}.log)
29 case $PACKAGE in
30 *-dev)
31 copy @dev
32 ;;
33 *)
34 copy @std
35 DEPENDS="dbus glib python dbus-glib"
36 ;;
37 esac
38 }