wok-next annotate python-dbus/receipt @ rev 21375

updated mpd (0.17.2 -> 0.21.22)
author Hans-G?nter Theisgen
date Thu Apr 16 13:45:16 2020 +0100 (2020-04-16)
parents 2949147cd6ec
children
rev   line source
al@20919 1 # SliTaz package receipt v2.
al@20919 2
al@20972 3 ORIGIN="dbus-python"
al@20919 4 PACKAGE="python-dbus"
al@20972 5 VERSION="1.2.8"
al@20919 6 CATEGORY="system-tools"
al@20972 7 SHORT_DESC="Python bindings for libdbus"
al@21020 8 MAINTAINER="devel@slitaz.org"
al@20919 9 LICENSE="GPL2"
al@20972 10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
al@20972 11 #HOST_ARCH
al@20919 12 REPOLOGY="python:dbus-python"
al@20919 13
al@20972 14 BUILD_DEPENDS="python-dev python3-dev dbus-dev glib-dev"
al@20972 15 SPLIT="$PACKAGE-dev \
al@20972 16 ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
al@20919 17
al@20919 18 # Python packages name should start with "python-", but "python-dbus-python"
al@20919 19 # is pretty ugly name, so strip it to "python-dbus"
al@20919 20
al@20919 21 compile_rules() {
al@20972 22 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION || return 1
al@20919 23
al@20919 24 # fix installation
al@20978 25 mv $install/tmp/pip-*/dbus-python/build/lib.*/* \
al@20972 26 $install/usr/lib/python*/site-packages/
al@20919 27 rm -r $install/tmp
al@20972 28
al@20972 29 # it don't follow --no-compile option
al@20972 30 find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
al@20919 31 }
al@20919 32
al@20919 33 genpkg_rules() {
al@20919 34 case $PACKAGE in
al@20919 35 *-dev)
al@20919 36 copy @dev
al@20972 37 DEPENDS="${PACKAGE%%-dev} dbus-dev"
al@20919 38 ;;
al@20919 39 *)
al@20919 40 copy @std
al@20972 41 py=${PACKAGE%%-*} # python/python3
al@20972 42 DEPENDS="$py dbus glib"
al@20919 43 ;;
al@20919 44 esac
al@20919 45 }