Preparation for switching to tarballs

This commit is contained in:
Andreas Cord-Landwehr
2021-07-25 19:36:17 +02:00
parent 5b5396dd1b
commit 3dc8644aff
10 changed files with 34 additions and 19 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -9,7 +9,7 @@
function usage()
{
echo "$1 [add|remove|update] <version> [<new version>]"
echo "$1 [add|add-tarball|remove|update <version> [<new version>]"
exit 1
}
@@ -31,10 +31,34 @@ cat <<EOM > $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 <<EOM > $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