2020-02-14 23:04:10 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
2020-08-18 01:20:06 +02:00
|
|
|
script_dir=$(dirname "${BASH_SOURCE[0]}")
|
|
|
|
source "$script_dir/settestenv.sh"
|
2020-02-14 23:04:10 +01:00
|
|
|
|
|
|
|
# use the package dir within the source-tree so one does not need to run CMake again for updating
|
|
|
|
# build-tree copy all the time
|
2023-05-21 20:14:24 +02:00
|
|
|
package_dir=$script_dir/../$2
|
2020-02-14 23:04:10 +01:00
|
|
|
|
|
|
|
# copy the generated desktop file back into the source-tree package dir so it can actually be used
|
|
|
|
meta_data_file=$1
|
|
|
|
cp --target-directory="$package_dir" "$meta_data_file"
|
|
|
|
|
|
|
|
# install or update the package into the working directory
|
|
|
|
if ! plasmapkg2 --install "$package_dir"; then
|
|
|
|
plasmapkg2 --upgrade "$package_dir"
|
|
|
|
fi
|
2018-01-23 10:50:21 +01:00
|
|
|
exit $?
|