SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dbus-python"

# SliTaz package receipt.

PACKAGE="dbus-python"
VERSION="1.2.18"
CATEGORY="system-tools"
SHORT_DESC="D-Bus python binding."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://freedesktop.org/wiki/Software/DBusBindings/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://dbus.freedesktop.org/releases/dbus-python/$TARBALL"

DEPENDS="dbus dbus-glib glib libgio python3"
BUILD_DEPENDS="dbus-dev dbus-glib-dev glib-dev libgio-dev python3-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure $CONFIGURE_ARGS PYTHON_VERSION=3 &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/lib/python*    $fs/usr/lib
    rm                $fs/usr/lib/python*/*/*.la
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)