diff --git a/recipes-plasma-mobile/alligator.inc b/recipes-plasma-mobile/alligator.inc index d300777..4456122 100644 --- a/recipes-plasma-mobile/alligator.inc +++ b/recipes-plasma-mobile/alligator.inc @@ -16,8 +16,7 @@ DEPENDS = " \ plasma-framework \ " -SRC_URI = "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/calindori.inc b/recipes-plasma-mobile/calindori.inc index 6078cdc..1babc84 100644 --- a/recipes-plasma-mobile/calindori.inc +++ b/recipes-plasma-mobile/calindori.inc @@ -16,8 +16,7 @@ DEPENDS = " \ plasma-framework \ " -SRC_URI = "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/kasts.inc b/recipes-plasma-mobile/kasts.inc index ae4ef91..e1d3726 100644 --- a/recipes-plasma-mobile/kasts.inc +++ b/recipes-plasma-mobile/kasts.inc @@ -19,8 +19,7 @@ DEPENDS = " \ ki18n \ " -SRC_URI = "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/kclock.inc b/recipes-plasma-mobile/kclock.inc index 93c15cc..a7563c0 100644 --- a/recipes-plasma-mobile/kclock.inc +++ b/recipes-plasma-mobile/kclock.inc @@ -20,8 +20,7 @@ DEPENDS = " \ plasma-framework \ " -SRC_URI = "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/koko.inc b/recipes-plasma-mobile/koko.inc index d933944..dcb62f1 100644 --- a/recipes-plasma-mobile/koko.inc +++ b/recipes-plasma-mobile/koko.inc @@ -21,8 +21,7 @@ DEPENDS = " \ exiv2 \ " -SRC_URI = "git://invent.kde.org/graphics/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/graphics/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/kongress.inc b/recipes-plasma-mobile/kongress.inc index 9c0bb5f..99bd286 100644 --- a/recipes-plasma-mobile/kongress.inc +++ b/recipes-plasma-mobile/kongress.inc @@ -18,8 +18,7 @@ DEPENDS = " \ knotifications \ " -SRC_URI = "git://invent.kde.org/utilities/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/utilities/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/krecorder.inc b/recipes-plasma-mobile/krecorder.inc index b5d27ef..b3b128f 100644 --- a/recipes-plasma-mobile/krecorder.inc +++ b/recipes-plasma-mobile/krecorder.inc @@ -16,8 +16,7 @@ DEPENDS = " \ kirigami \ " -SRC_URI = "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/ktrip.inc b/recipes-plasma-mobile/ktrip.inc index 87a5480..8b25b7e 100644 --- a/recipes-plasma-mobile/ktrip.inc +++ b/recipes-plasma-mobile/ktrip.inc @@ -19,8 +19,7 @@ DEPENDS = " \ kpublictransport \ " -SRC_URI = "git://invent.kde.org/utilities/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/utilities/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/recipes-plasma-mobile/kweather.inc b/recipes-plasma-mobile/kweather.inc index ad2a1f2..4cd8129 100644 --- a/recipes-plasma-mobile/kweather.inc +++ b/recipes-plasma-mobile/kweather.inc @@ -21,8 +21,7 @@ DEPENDS = " \ kweathercore \ " -SRC_URI = "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" -S = "${WORKDIR}/git" +SRC_URI ?= "git://invent.kde.org/plasma-mobile/${BPN};nobranch=1;protocol=https" inherit cmake_kdeapp inherit kconfig diff --git a/scripts/plasma-mobile-release.sh b/scripts/plasma-mobile-release.sh index dd1c16a..2276766 100755 --- a/scripts/plasma-mobile-release.sh +++ b/scripts/plasma-mobile-release.sh @@ -9,7 +9,7 @@ function usage() { - echo "$1 [add|remove|update] []" + echo "$1 [add|add-tarball|remove|update []" exit 1 } @@ -31,10 +31,34 @@ cat < $name require \${PN}.inc SRCREV = "v\${PV}" +S = "\${WORKDIR}/git" EOM git add $name done ;; +add-tarball) + # search for all non-staging inc files without underlines + for recipe in $(find $base -regex ".*/[0-9a-zA-Z\-]+\.inc" | grep -v /staging/); do + name=$(echo $recipe | sed -e "s,\.inc,_${version}.bb,") + app=$(echo $recipe | grep -P -o '[0-9a-zA-Z\-]+(?=\.inc)') + url="https://download.kde.org/stable/plasma-mobile/${version}/${app}-${version}.tar.xz" + sha256=$(curl -s "${url}.sha256" | cut -d" " -f1) + echo "${url} : ${sha256}" +# examples: +#https://download.kde.org/stable/plasma-mobile/21.07/kclock-21.07.tar.xz +#https://download.kde.org/stable/plasma-mobile/21.07/kclock-21.07.tar.xz.sha256 +cat < $name +# SPDX-FileCopyrightText: none +# SPDX-License-Identifier: CC0-1.0 + +require \${PN}.inc +SRC_URI = "${url}" +SRC_URI[sha256sum] = "${sha256}" +${extraconfig} +EOM + git add $name + done + ;; remove) for recipe in `find $base -name "*_$version.bb"`; do git rm -f $recipe