DEB build scripts: fixed support for metapackages and adjusted to new consolidated structure.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/18/head
Michele Calgaro 4 years ago
parent 65fe1b6b6a
commit 3a1f83fc67
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -9,7 +9,6 @@ build_module "applications/tdeio-sword"
build_module "applications/bibletime"
build_module "applications/desktop-effects-tde"
build_module "applications/fusion-icon"
build_module "metapackages/sudo-trinity"
build_module "applications/kdpkg"
build_module "applications/kgtk-qt3"
build_module "applications/tdesudo"

@ -5,20 +5,21 @@
#----------------------------
set_log_start
build_module "defaultsettings/desktop-base"
build_module "defaultsettings/kubuntu-default-settings"
build_module "defaultsettings/redmond-default-settings"
build_module "defaultsettings/redmond-default-settings-ii"
build_module "metapackages/desktop-base"
build_module "metapackages/meta-tde"
build_module "metapackages/redmond-default-settings"
build_module "metapackages/redmond-default-settings-ii"
build_module "metapackages/sudo-trinity"
build_module "metapackages/synaptic-trinity"
build_module "metapackages/tde-ubuntu-integration"
build_module "metapackages/trinity-apt-archive"
build_module "metapackages/trinity-keyring"
build_module "metapackages/trinity-slax"
# Ubuntu only - uncomment if necessary - untested
#build_module "metapackages/casper-trinity"
#build_module "metapackages/kubuntu-default-settings"
#build_module "metapackages/kubuntu-meta"
#build_module "metapackages/tde-ubuntu-integration"
#build_module "metapackages/trinity-livecd"
#build_module "metapackages/ubiquity-trinity"

@ -71,7 +71,7 @@ function search_module()
# Search in GIT repository
LOC_MATCH=`sed -n "s|^\[submodule \"main/\([^\"]*\)\"\]$|\1|p" <"$REPO_TDE/.gitmodules" | grep "$LOC_MOD_NAME$"`
if [ "$LOC_MATCH" != "" -a "`echo $LOC_MATCH | wc -l`" = "1" ]; then
# Unique module found in GIT
# Unique module
MODULE_FOUND="y"
MOD_NAME=$LOC_MATCH
MOD_GIT_PATH="$REPO_TDE_MAIN/$MOD_NAME"
@ -80,14 +80,26 @@ function search_module()
else
# Search in extra dependency folder
LOC_BASENAME=`echo "$LOC_MOD_NAME" | sed -r "s|^${CFG_EXTRA_DEPS_DIR}/(debian/)?||"`
LOC_MATCH=`ls "$REPO_EXTRA_DEPENDENCIES/debian" | grep "^$LOC_BASENAME"`
LOC_MATCH=`ls "$REPO_EXTRA_DEPENDENCIES/debian" | grep "^$LOC_BASENAME\$"`
if [ "$LOC_MATCH" != "" -a "`echo $LOC_MATCH | wc -l`" = "1" ]; then
# Unique module found in extra dependency folder
# Unique module found
MODULE_FOUND="y"
bool_EXTRADEP_MOD="y"
MOD_NAME="$CFG_EXTRA_DEPS_DIR/$LOC_MATCH"
MOD_GIT_PATH="$REPO_EXTRA_DEPENDENCIES/debian/$LOC_BASENAME"
MOD_BUILD_PATH="$TDE_BUILD_DIR/$CFG_EXTRA_DEPS_DIR/$LOC_BASENAME"
else
# Search in metapackages folder
LOC_BASENAME=`echo "$LOC_MOD_NAME" | sed -r "s|^(metapackages/)?||"`
LOC_MATCH=`ls "$REPO_TDE_MAIN/metapackages" | grep "^$LOC_BASENAME\$"`
if [ "$LOC_MATCH" != "" -a "`echo $LOC_MATCH | wc -l`" = "1" ]; then
# Unique module found
MODULE_FOUND="y"
MOD_NAME="metapackages/$LOC_MATCH"
MOD_GIT_PATH="$REPO_TDE_MAIN/metapackages/$LOC_BASENAME"
MOD_GIT_PKGING_PATH="$REPO_TDE_PACKAGING/$MOD_NAME/debian"
MOD_BUILD_PATH="$TDE_BUILD_DIR/metapackages/$LOC_BASENAME"
fi
fi
fi
MOD_BUILD_PKGING_PATH="$MOD_BUILD_PATH/debian"
@ -283,8 +295,6 @@ if [ "$bool_EXTRADEP_MOD" != "y" -a "$bool_COPY_PKGING_FILES" = "y" ]; then
fi
cp -R "$MOD_GIT_PKGING_PATH" "$MOD_BUILD_PKGING_PATH"
# TODO metapackage support
# Default package name
# Calculate package version
cd $MOD_GIT_PATH

Loading…
Cancel
Save