Skip to content

Commit

Permalink
u2d: add u2dkde
Browse files Browse the repository at this point in the history
  • Loading branch information
rezso committed Jan 30, 2024
1 parent 5f41359 commit 4d0cbef
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/uhubuild-u2d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ function u2dsrc {
done
}

# kdeapps project
function kdeapp {
# u2dsrc https://download.kde.org/stable/applications/ $1
u2dsrc https://download.kde.org/stable/release-service/ $1
}

# list sourceforge project files
function sflist() {
project="$1"
Expand Down Expand Up @@ -179,6 +173,21 @@ function u2dxfce {
urllist https://archive.xfce.org/src/$subdir/$project/"$ver/" | splitver '^'$project'-([0-9.]+).tar.(gz|bz2|xz)$' | sort -V | tail -n 1
}

# script for kde
function u2dkde {
subdir="$1" #frameworks, plasma vagy app
project="$2"
unstable="$3"
reg="stable";
if [ -n "${unstable:-}" ]; then
reg="unstable"
fi
if [ $subdir == "app" ]; then
u2dsrc https://download.kde.org/$reg/release-service/ $project
else
u2dsubdir https://download.kde.org/$reg/$subdir/ $project-
fi
}

# script for perl modules
function u2dcpan() {
Expand All @@ -193,7 +202,6 @@ function u2dcpan() {
# script for python modules
function u2dpypi() {
project="$1"
# urllist "https://pypi.python.org/simple/$project/" | sed 's/#.*//' | parsever | sort -V | tail -n 1
urllist "https://pypi.org/project/$project/" | sed 's/#.*//' | parsever | sort -V | tail -n 1
}

0 comments on commit 4d0cbef

Please sign in to comment.