libconnman-qt5: pass VERSION in EXTRA_QMAKEVARS_PRE

* the version in .pro and .spec doesn't match with the git tag:
  https://github.com/sailfishos/libconnman-qt/pull/9#issuecomment-1175243813
  sailfish passes the version based on git tag:
  https://github.com/sailfishos/libconnman-qt/pull/9#issuecomment-1175827075
  lets do the same

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa
2022-07-06 13:35:05 +02:00
parent 1c693f7cc1
commit 2b71dbe687

View File

@@ -5,17 +5,18 @@ HOMEPAGE = "https://github.com/sailfishos/libconnman-qt"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://libconnman-qt/clockmodel.h;endline=8;md5=ea9f724050803f15d2d900ce3c5dac88"
DEPENDS += "qtbase qtdeclarative"
PV = "1.2.46+git${SRCPV}"
VERSION = "1.2.46"
PV = "${VERSION}+git${SRCPV}"
SRCREV = "6786936cba9048ee943c0cd5d051c0b8fc70896f"
SRC_URI = "git://github.com/sailfishos/libconnman-qt.git;protocol=https;branch=master \
"
SRC_URI = "git://github.com/sailfishos/libconnman-qt.git;protocol=https;branch=master"
S = "${WORKDIR}/git"
inherit pkgconfig
EXTRA_QMAKEVARS_PRE = "CONFIG+=no-module-prefix"
EXTRA_QMAKEVARS_PRE = "CONFIG+=no-module-prefix VERSION=${VERSION}"
RDEPENDS:${PN} += "connman"