From f9282d77996c9a097fd6a48971e0ea4272235157 Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Sun, 6 Mar 2022 09:32:43 +0100 Subject: [PATCH] Package qalculate library as support package --- recipes-support/libqalculate.inc | 43 +++++++++++++++++++++++++++ recipes-support/libqalculate_4.0.0.bb | 5 ++++ 2 files changed, 48 insertions(+) create mode 100644 recipes-support/libqalculate.inc create mode 100644 recipes-support/libqalculate_4.0.0.bb diff --git a/recipes-support/libqalculate.inc b/recipes-support/libqalculate.inc new file mode 100644 index 0000000..0294725 --- /dev/null +++ b/recipes-support/libqalculate.inc @@ -0,0 +1,43 @@ +# SPDX-FileCopyrightText: 2022 Andreas Cord-Landwehr +# +# SPDX-License-Identifier: MIT + +LICENSE = "GPL-2.0" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" +SUMMARY = "Qalculate! library and CLI" +HOMEPAGE = "https://qalculate.github.io/" + +SRC_URI = " \ + git://github.com/Qalculate/libqalculate.git;nobranch=1 \ +" + +S = "${WORKDIR}/git" + +DEPENDS = " \ + gmp \ + mpfr \ + curl \ + icu \ + libxml2 \ + intltool-native \ +" + +inherit autotools +inherit gettext + +do_configure:prepend() { + ${S}/autogen.sh ${CONFIGUREOPTS} +} + +FILES:${PN} += " \ + ${datadir}/qalculate/rates.json \ + ${datadir}/qalculate/prefixes.xml \ + ${datadir}/qalculate/elements.xml \ + ${datadir}/qalculate/currencies.xml \ + ${datadir}/qalculate/variables.xml \ + ${datadir}/qalculate/eurofxref-daily.xml \ + ${datadir}/qalculate/datasets.xml \ + ${datadir}/qalculate/planets.xml \ + ${datadir}/qalculate/functions.xml \ + ${datadir}/qalculate/units.xml \ +" diff --git a/recipes-support/libqalculate_4.0.0.bb b/recipes-support/libqalculate_4.0.0.bb new file mode 100644 index 0000000..8e68fed --- /dev/null +++ b/recipes-support/libqalculate_4.0.0.bb @@ -0,0 +1,5 @@ +# SPDX-FileCopyrightText: none +# SPDX-License-Identifier: CC0-1.0 + +require ${BPN}.inc +SRCREV = "v${PV}"