
_realname=git-extras
pkgname=${_realname}
replaces=("${_realname}-git")
conflicts=("${_realname}-git")
pkgver=6.1.0
pkgrel=1
pkgdesc="GIT utilities -- repo summary, commit counting, repl, changelog population and more"
arch=('any')
license=('MIT')
url='https://github.com/tj/git-extras'
depends=('git')
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/tj/git-extras/archive/$pkgver.tar.gz")
noextract=("${_realname}-${pkgver}.tar.gz")
sha256sums=('7be0b15ee803d76d2c2e8036f5d9db6677f2232bb8d2c4976691ff7ae026a22f')

build(){
  cd "${srcdir}"
  bsdtar -zxf "${_realname}-${pkgver}.tar.gz" || true

  cd "${srcdir}/${_realname}-${pkgver}"
  cp bin/git-scp bin/git-rscp
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make DESTDIR="$pkgdir" PREFIX=/usr SYSCONFDIR=/etc install
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_realname}/LICENSE"
}
