1 BASE
=http
://www.openadk.org
/distfiles
9 mkdir
-p "$TARGET/CONTROL"
10 grep '^[^(Version|Architecture)]' "$CONTROL" > "$TARGET/CONTROL/control"
11 grep '^Maintainer' "$CONTROL" 2>&1 >/dev
/null || \
12 echo "Maintainer: Waldemar Brodkorb <wbx@openadk.org>" >> "$TARGET/CONTROL/control"
13 grep '^Priority' "$CONTROL" 2>&1 >/dev
/null || \
14 echo "Priority: optional" >> "$TARGET/CONTROL/control"
15 grep '^Source' "$CONTROL" 2>&1 >/dev
/null ||
{
16 pkgbase
=$
(echo "$WD" |
sed -e "s|^$TOPDIR/||g")
17 [ "$pkgbase" = "$WD" ] && src
="N/A" || src
="$BASE"
18 echo "Source: $src" >> "$TARGET/CONTROL/control"
20 echo "Version: $VERSION" >> "$TARGET/CONTROL/control"
21 echo "Architecture: $ARCH" >> "$TARGET/CONTROL/control"
22 chmod 644 "$TARGET/CONTROL/control"