#!/bin/sh set -eu for pkg in libcurl.4; do # These are installed into section "base" because these packages don't # semantically belong anywhere else. They can't be installed into # "lib", because opkbuild would append ":${Host-Arch}" to their names, # which is exactly the problem we're trying to solve here. mkdir -p "${pkg}.pkg" cat 1>"${pkg}.pkg/control" 0<<-EOF Architecture: any Platform: all Section: base Depends: ${pkg}:\${Host-Arch}, malt-common (= \${Source-Version}), Description: Multiarch library transition for ${pkg} \${Common-Description} . This is a transitional package for ${pkg}. EOF done