Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit d55eec9

Browse files
authored
Update kdenlive
- use https://download.kde.org to download the program As of March 10, 2025, the Kdenlive main site experienced several slowdowns. This source is more reliable.
1 parent e5b5655 commit d55eec9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

programs/x86_64/kdenlive

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
1212
chmod a+x ../remove || exit 1
1313

1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15-
version=$(curl -Ls https://kdenlive.org/en/download/ | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep AppImage | head -1)
15+
kdenlive_url="https://download.kde.org/stable/kdenlive/"
16+
kdenlive_ver=$(curl -Ls "$kdenlive_url" | tr '">< ' '\n' | grep -i "^[0-9].*[0-9]/$" | uniq)
17+
kdenlive_apps=$(for a in $kdenlive_ver; do kdenlive_app=$(curl -Ls "$kdenlive_url$a"linux/ | tr '">< ' '\n' | grep -i "x86_64.*appimage" | tail -1); [ -n "$kdenlive_app" ] && echo "$kdenlive_url$a"linux/"$kdenlive_app"; done)
18+
version=$(echo "$kdenlive_apps" | tail -1)
1619
wget "$version" || exit 1
1720
# Keep this space in sync with other installation scripts
1821
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
@@ -32,8 +35,11 @@ cat >> ./AM-updater << 'EOF'
3235
set -u
3336
APP=kdenlive
3437
SITE="https://kdenlive.org"
38+
kdenlive_url="https://download.kde.org/stable/kdenlive/"
39+
kdenlive_ver=$(curl -Ls "$kdenlive_url" | tr '">< ' '\n' | grep -i "^[0-9].*[0-9]/$" | uniq)
40+
kdenlive_apps=$(for a in $kdenlive_ver; do kdenlive_app=$(curl -Ls "$kdenlive_url$a"linux/ | tr '">< ' '\n' | grep -i "x86_64.*appimage" | tail -1); [ -n "$kdenlive_app" ] && echo "$kdenlive_url$a"linux/"$kdenlive_app"; done)
3541
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://kdenlive.org/en/download/ | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep AppImage | head -1)
42+
version=$(echo "$kdenlive_apps" | tail -1)
3743
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3844
if command -v appimageupdatetool >/dev/null 2>&1; then
3945
cd "/opt/$APP" || exit 1

0 commit comments

Comments
 (0)