pkg_name=mc
pkg_origin=core
pkg_version=4.8.18
pkg_description="Midnight Commander."
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('GPL-3.0')
pkg_source=http://ftp.midnight-commander.org/mc-${pkg_version}.tar.bz2
pkg_upstream_url=https://www.midnight-commander.org
pkg_shasum=5b591e10dcbea95233434da40cdad4663d360229adf89826576c319667c103cb
pkg_deps=(
  core/glib
  core/glibc
  core/ncurses
  core/pcre
)
pkg_build_deps=(
  core/check
  core/coreutils
  core/diffutils
  core/gcc
  core/gettext
  core/make
  core/perl
  core/pkg-config
)
pkg_bin_dirs=(bin)

do_build() {
  ./configure --prefix="$pkg_prefix" \
              --with-screen=ncurses \
              --with-ncurses-libs="$(pkg_path_for ncurses)/lib" \
              --without-subshell \
              --without-x \
              --without-gpm-mouse
  make
}

pkg_name=mc
pkg_origin=core
pkg_version=4.8.21
pkg_description="Midnight Commander."
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('GPL-3.0')
pkg_source=http://ftp.midnight-commander.org/mc-${pkg_version}.tar.xz
pkg_upstream_url=https://www.midnight-commander.org
pkg_shasum=8f37e546ac7c31c9c203a03b1c1d6cb2d2f623a300b86badfd367e5559fe148c
pkg_deps=(
  core/glib
  core/glibc
  core/ncurses
  core/pcre
)
pkg_build_deps=(
  core/check
  core/coreutils
  core/diffutils
  core/gcc
  core/gettext
  core/make
  core/perl
  core/pkg-config
)
pkg_bin_dirs=(bin)

do_build() {
  ./configure \
    --prefix="$pkg_prefix" \
    --with-screen=ncurses \
    --with-ncurses-libs="$(pkg_path_for ncurses)/lib" \
    --without-subshell \
    --without-x \
    --without-gpm-mouse
  make
}

Update to 4.8.21, prefer xz tarball
Update to 4.8.21, prefer xz tarball

Signed-off-by: Graham Weldon <5ca27e75aea3e5e83a04c6cfa5f1b63d358cd03d@grahamweldon.com>
