summaryrefslogtreecommitdiffstats
path: root/src/ob-gencontrol.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ob-gencontrol.sh')
-rw-r--r--src/ob-gencontrol.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh
index 471e079..b6d649e 100644
--- a/src/ob-gencontrol.sh
+++ b/src/ob-gencontrol.sh
@@ -119,8 +119,8 @@ gen_control_bin()
local plat="${4}"
local desc="${5}"
shift 5
- local name=
local value=
+ local name=
local homepage=
mkdir -p -- "${binary}.control"
@@ -131,6 +131,14 @@ gen_control_bin()
Version: ${version}
Architecture: ${arch}
Platform: ${plat}
+ EOF
+ value="$(ob_get_binary_parameter "${binary}" 'Section')"
+ if [ -n "${value}" ]; then
+ cat >>"${binary}.control/control" <<-EOF
+ Section: ${value}
+ EOF
+ fi
+ cat >>"${binary}.control/control" <<-EOF
Maintainer: $(ob_get_source_parameter 'Maintainer' | \
tr '\n' ' ')
EOF