wok-current view py3k-dbus/receipt @ rev 25451

Add bluez-gatttool
author Stanislas Leduc <shann@slitaz.org>
date Thu Sep 15 07:47:22 2022 +0000 (2022-09-15)
parents 209f25cbe29f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k-dbus"
4 VERSION="1.2.18"
5 CATEGORY="development"
6 SHORT_DESC="Python3 bindings for dbus."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.freedesktop.org/wiki/Software/DBusBindings/"
10 REPOLOGY="python:dbus-python"
12 SOURCE="dbus-python"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="py3k"
17 BUILD_DEPENDS="dbus-dev py3k-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/freedesktop/dbus-python/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python3 setup.py build &&
30 ./configure \
31 $CONFIGURE_ARGS &&
32 make &&
33 python3 setup.py install --skip-build --root=$DESTDIR &&
34 make install DESTDIR=$DESTDIR
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders lib
41 }