pkg_name=iana-etc
pkg_origin=core
pkg_version=2.30
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
The iana-etc package provides the Unix/Linux /etc/services and /etc/protocols \
files.\
"
pkg_upstream_url="http://sethwklein.net/iana-etc"
pkg_license=('GPL-3.0-or-later')
pkg_source="http://sethwklein.net/${pkg_name}-${pkg_version}.tar.bz2"
pkg_shasum="b9a6874fb20012836efef75452ef2acae624022d680feeb1994d73facba3f20d"
pkg_deps=()
pkg_build_deps=(
  core/coreutils
  core/make
  core/gawk
)

do_build() {
  make
}

do_install() {
  make install PREFIX="$pkg_prefix"
}


# ----------------------------------------------------------------------------
# **NOTICE:** What follows are implementation details required for building a
# first-pass, "stage1" toolchain and environment. It is only used when running
# in a "stage1" Studio and can be safely ignored by almost everyone. Having
# said that, it performs a vital bootstrapping process and cannot be removed or
# significantly altered. Thank you!
# ----------------------------------------------------------------------------
if [[ "$STUDIO_TYPE" = "stage1" ]]; then
  pkg_build_deps=(
    core/coreutils
    core/gawk
  )
fi
