diff options
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index d1416d15..859c6953 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -695,6 +695,16 @@ create_package() { fi done + # check for alternative files + for i in ${alternative[@]}; do + msg2 "$(gettext "Adding %s file...")" "$i.alternative" + if ! cp "$startdir/$i.alternative" ".ALTERNATIVE.$i"; then + error "$(gettext "Failed to add %s file to package.")" "$i.alternative" + exit $E_MISSING_FILE + fi + chmod 644 ".ALTERNATIVE.$i" + done + # tar it up local fullver=$(get_full_version) local pkg_file="$PKGDEST/${pkgname}-${fullver}-${pkgarch}${PKGEXT}" |