_pkgname=git-extras
pkgname=${_pkgname}-git
pkgver=4.3.0
pkgrel=1
pkgdesc="GIT utilities -- repo summary, commit counting, repl, changelog population and more"
arch=('any')
license=('MIT')
depends=('git')
source=("https://github.com/tj/${_pkgname}.git")
sha256sums=('SKIP')

build(){
    cd "$srcdir/$_pkgname"
    git checkout "$pkgver"
}

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