summaryrefslogtreecommitdiff
path: root/recipes-connectivity/bluez/python3-pygattlib.unused
blob: 0a5aaee0029f80ce9b971ec134decc991268b051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DESCRIPTION = "Python BLE GATT Library"
HOMEPAGE = "https://bitbucket.org/OscarAcena/pygattlib"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

DEPENDS = "boost bluez5 glib-2.0"

inherit setuptools3

PR = "r3"
SRCREV = "f319522a2e719a9a05220b42ac16eb360be3fe1c"
SRC_URI = "git://git@gitlab.multitech.net/aep/pygattlib.git;protocol=ssh;branch=master \
           file://0001-Fixed-build-with-Python3.8-and-Boost-1.72.patch \
"

SRC_URI[md5sum] = "014bf03c4812f74b6c9e86e1e895bb82"
SRC_URI[sha256sum] = "f759070d59597db1f8d10991497f133eddb9d7f990d15571031d93a397a772e2"

S = "${WORKDIR}/git"

inherit autotools-brokensep pkgconfig

# necessary to let the call for python3-config succeed
export BUILD_SYS
export HOST_SYS
export STAGING_INCDIR
export STAGING_LIBDIR

do_compile() {
	oe_runmake
}

#TODO
# QA Issue: File /usr/lib/python3.8/lib-dynload/gattlib.so in package pygattlib doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]
do_install() {
	install -d ${D}/${libdir}/python3.8/lib-dynload
	install -m 0755 ${WORKDIR}/git/src/gattlib.so ${D}/${libdir}/python3.8/lib-dynload/gattlib.so
}