aboutsummaryrefslogtreecommitdiffstats
path: root/debian/dh-dbgsym-metapkg
blob: fecbed18c035d57bf4b506f61f2099fd5112e3ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -e

PACKAGE=${1:?Missing parameter}

dh_installdocs -p${PACKAGE}
dh_installchangelogs -p${PACKAGE}
dh_compress -p${PACKAGE}

install -d debian/${PACKAGE}/DEBIAN

echo -n 'misc:Depends=' > debian/${PACKAGE}.substvars
grep -E 'lib.*-dbgsym' debian/files | tr '_' ' ' | \
    awk '{ print $1,"(=",$2 ")" }' | paste -sd ',' - | \
    sed -e 's/,/, /g' >> debian/${PACKAGE}.substvars

dh_gencontrol -p libdpdk-dev -- \
	      -Pdebian/${PACKAGE} \
	      -Tdebian/${PACKAGE}.substvars \
	      -UPre-Depends -URecommends -USuggests -UEnhances -UProvides \
	      -UEssential -UConflicts -UReplaces -UBreaks \
	      -DSection=debug -DPriority=extra \
	      -DAuto-Built-Package=debug-symbols \
	      -DPackage=${PACKAGE} "-DDepends=\${misc:Depends}" \
	      "-DDescription=Debug symbols for libdpdk-dev (meta-package)"