# Template file for 'git-bug-git'
pkgname=git-bug-git
version=20241209
revision=2
_commit=d499b6e9d3333334614924669b74640a2d0b5485
build_style=go
go_import_path="github.com/git-bug/git-bug"
hostmakedepends="git"
depends="git"
short_desc="Distributed, offline-first bug tracker embedded in git, with bridges"
maintainer="Marty Oehme <contact@martyoeh.me>"
license="GPL-3.0-only"
homepage="https://github.com/git-bug/git-bug"
distfiles="${homepage}/archive/${_commit}.tar.gz"
replaces="git-bug>=0"
provides="git-bug-${version}_${revision}"
checksum=b62c4b8145babac282c61e5467b815321eb0008d92df37403ba388432aeca01b

post_install() {
    vlicense LICENSE

    vman doc/man/git-bug-bridge-auth-add-token.1
    vman doc/man/git-bug-bridge-auth-rm.1
    vman doc/man/git-bug-bridge-auth-show.1
    vman doc/man/git-bug-bridge-auth.1
    vman doc/man/git-bug-bridge-new.1
    vman doc/man/git-bug-bridge-pull.1
    vman doc/man/git-bug-bridge-push.1
    vman doc/man/git-bug-bridge-rm.1
    vman doc/man/git-bug-bridge.1
    vman doc/man/git-bug-bug-comment-edit.1
    vman doc/man/git-bug-bug-comment-new.1
    vman doc/man/git-bug-bug-comment.1
    vman doc/man/git-bug-bug-deselect.1
    vman doc/man/git-bug-bug-label-new.1
    vman doc/man/git-bug-bug-label-rm.1
    vman doc/man/git-bug-bug-label.1
    vman doc/man/git-bug-bug-new.1
    vman doc/man/git-bug-bug-rm.1
    vman doc/man/git-bug-bug-select.1
    vman doc/man/git-bug-bug-show.1
    vman doc/man/git-bug-bug-status-close.1
    vman doc/man/git-bug-bug-status-open.1
    vman doc/man/git-bug-bug-status.1
    vman doc/man/git-bug-bug-title-edit.1
    vman doc/man/git-bug-bug-title.1
    vman doc/man/git-bug-bug.1
    vman doc/man/git-bug-commands.1
    vman doc/man/git-bug-label.1
    vman doc/man/git-bug-pull.1
    vman doc/man/git-bug-push.1
    vman doc/man/git-bug-termui.1
    vman doc/man/git-bug-user-adopt.1
    vman doc/man/git-bug-user-new.1
    vman doc/man/git-bug-user-user.1
    vman doc/man/git-bug-user.1
    vman doc/man/git-bug-version.1
    vman doc/man/git-bug-webui.1
    vman doc/man/git-bug-wipe.1
    vman doc/man/git-bug.1

    vdoc doc/README.md
    vdoc doc/architecture.md
    vdoc doc/cli-convention.md
    vdoc doc/feature_matrix.md
    vdoc doc/howto-github.md
    vdoc doc/jira_bridge.md
    vdoc doc/model.md
    vdoc doc/queries.md
}