void-packages/srcpkgs/git-team/template

29 lines
1.1 KiB
Bash

# Template file for 'git-team'
pkgname=git-team
version=1.4.1
revision=1
build_style=go
go_import_path=github.com/hekmekk/git-team
go_package="${go_import_path}/cmd/git-team ${go_import_path}/cmd/prepare-commit-msg"
short_desc="Manage and enhance git commit messages with co-authors"
maintainer="Frank Steinborn <steinex@nognu.de>"
license="MIT"
homepage="https://github.com/hekmekk/git-team"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=2e037433ba2491f58ec364712797aa54a83893cd01e45e52ae18e49166702343
pre_build() {
vsed -e 's,/usr/local/etc/git-team/hooks,/usr/libexec/git-team/hooks,g' -i src/command/enable/commitsettings/datasource/static_value_data_source_test.go
vsed -e 's,/usr/local/etc/git-team/hooks,/usr/libexec/git-team/hooks,g' -i src/command/enable/commitsettings/datasource/static_value_data_source.go
}
post_install() {
vlicense LICENSE
vmkdir usr/libexec/git-team/hooks
mv ${DESTDIR}/usr/bin/prepare-commit-msg ${DESTDIR}/usr/libexec/git-team/hooks
vinstall git-hooks/proxy.sh 0755 usr/libexec/git-team/hooks
vinstall bash_completion/git-team.bash 0644 usr/share/bash-completion/completions git-team
}