makedeb


mist-bin 0.12.0-85


The official command-line interface for the makedeb Package Repository

Viewing /.update.sh.

View raw.

Click here to go back to the Git tree for mist-bin.

#!/usr/bin/env bash
# NOTE: This script is just used to update the package. If you're just
# installing this package you can ignore this file.
set -e
MAKEDEB_DISTRO_CODENAME='{}'
source PKGBUILD

for distro in focal jammy bullseye; do
    wget -O "${distro}.deb" "$(echo "${_source_uri}" | sed "s|{}|${distro}|g")"
    sha512sum="$(sha512sum "${distro}.deb" | awk '{print $1}')"
    sed -i "s|^${distro}_sha512sums=.*|${distro}_sha512sums=('${sha512sum}')|" PKGBUILD
    rm "${distro}.deb"
done

# vim: set sw=4 expandtab: