pkg_name=git
pkg_version=2.7.4
pkg_origin=core
pkg_license=('gplv2')
pkg_source=https://www.kernel.org/pub/software/scm/git/${pkg_name}-${pkg_version}.tar.gz
pkg_filename=${pkg_name}-${pkg_version}.tar.gz
pkg_shasum=7104c4f5d948a75b499a954524cb281fe30c6649d8abe20982936f75ec1f275b
pkg_deps=(core/glibc core/zlib core/perl core/curl core/gettext core/expat core/cacerts)
pkg_build_deps=(core/make core/gcc)
pkg_lib_dirs=(lib)
pkg_include_dirs=(include)
pkg_bin_dirs=(bin)

do_prepare() {
  _perl_path="$(pkg_path_for perl)/bin/perl"
  sed -e "s#/usr/bin/perl#${_perl_path}#g" -i Makefile
}

do_build() {
  ./configure --prefix=${pkg_prefix}
  make
}

pkg_name=git
pkg_version=2.7.4
pkg_origin=core
pkg_description="Git is a free and open source distributed version control
  system designed to handle everything from small to very large projects with
  speed and efficiency."
pkg_upstream_url=https://git-scm.com/
pkg_license=('GPL-2.0')
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_source=https://www.kernel.org/pub/software/scm/git/${pkg_name}-${pkg_version}.tar.gz
pkg_filename=${pkg_name}-${pkg_version}.tar.gz
pkg_shasum=7104c4f5d948a75b499a954524cb281fe30c6649d8abe20982936f75ec1f275b
pkg_deps=(
  core/cacerts
  core/curl
  core/expat
  core/gettext
  core/gcc-libs
  core/glibc
  core/perl
  core/zlib
)
pkg_build_deps=(core/make core/gcc)
pkg_lib_dirs=(lib)
pkg_include_dirs=(include)
pkg_bin_dirs=(bin)

do_prepare() {
  local perl_path
  perl_path="$(pkg_path_for perl)/bin/perl"
  sed -e "s#/usr/bin/perl#$perl_path#g" -i Makefile
}

Add gcc-libs runtime dep to git
Add gcc-libs runtime dep to git

In some situations using git would give you:

    libgcc_s.so.1 must be installed for pthread_cancel to work

Add a runtime dep on gcc-libs to fix this.

Also:

* Add description, upstream url, and maintainer
* Make license use SPDX format
* Remove the `do_build`, because it's the same as the default
* Make ShellCheck happy

Signed-off-by: Nathan L Smith <smith@chef.io>

Closes: #52
Approved by: smith
