pkgname=git-delta
version=0.18.2
revision=1
short_desc='A syntax-highlighting pager for git, diff, grep, and blame output.'
archs="x86_64"
homepage="https://dandavison.github.io/delta"
license="MIT License"
distfiles="https://github.com/dandavison/delta/releases/download/${version}/delta-${version}-x86_64-unknown-linux-gnu.tar.gz"
checksum=884b631d2cdbe6f59cabfa04501a6a647c76370e6c99fe8a342f8d6d102ed8dc
maintainer="Marty Oehme <contact@martyoeh.me>"

do_install() {
    vlicensedir=/usr/share/licenses/${pkgname}
    vdocdir=/usr/share/doc/${pkgname}
    vbindir=/usr/bin

    mkdir -p "${DESTDIR}${vlicensedir}"
    mkdir -p "${DESTDIR}${vdocdir}"
    mkdir -p "${DESTDIR}${vbindir}"

    install -D -m644 LICENSE "${DESTDIR}${vlicensedir}/LICENSE"
    install -D -m644 README.md "${DESTDIR}${vdocdir}/README.md"
    install -D -m755 delta "${DESTDIR}${vbindir}/delta"
}