Import qca package from meta-kde

This commit is contained in:
Andreas Cord-Landwehr
2022-09-04 11:17:26 +02:00
parent 9b37aeb27c
commit 9f7387d2c2
2 changed files with 38 additions and 0 deletions

33
recipes-support/qca.inc Normal file
View File

@@ -0,0 +1,33 @@
# SPDX-FileCopyrightText: 2019-2020 Volker Krause <vkrause@kde.org>
#
# SPDX-License-Identifier: MIT
DESCRIPTION = "QCA"
HOMEPAGE = "https://invent.kde.org/libraries/qca/"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
PR = "r0"
DEPENDS = "qtbase"
SRC_URI = "git://invent.kde.org/libraries/${BPN};nobranch=1;protocol=https"
S = "${WORKDIR}/git"
inherit cmake_qt5
inherit pkgconfig
do_install:prepend() {
if [ "0" -ne $(find . -name \*.cmake | grep _usr | wc -l) ]; then
sed -i 's/\"\/usr\//\"\$\{OE_QCA_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr)
sed -i 's/\;\/usr\//\;\$\{OE_QCA_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr)
fi
}
FILES:${PN} += " \
${libdir}/qca-qt5/crypto/libqca-*.so \
"
FILES:${PN}-dev += " \
${prefix}/mkspecs/features/* \
${libdir}/cmake/Qca-qt5/*.cmake \
"

View File

@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: CC0-1.0
require ${BPN}.inc
SRCREV = "c4c772094d78160464aaefa5208230436c9daa12"