From 83ab499d6ae2343c9f4528098294f4fa20287a3c Mon Sep 17 00:00:00 2001 From: Frank Steinborn Date: Sun, 15 Dec 2019 02:05:04 +0100 Subject: [PATCH] New package: git-team-1.3.8 --- srcpkgs/git-team/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/git-team/template diff --git a/srcpkgs/git-team/template b/srcpkgs/git-team/template new file mode 100644 index 00000000000..e53f4fcee10 --- /dev/null +++ b/srcpkgs/git-team/template @@ -0,0 +1,28 @@ +# Template file for 'git-team' +pkgname=git-team +version=1.3.8 +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 " +license="MIT" +homepage="https://github.com/hekmekk/git-team" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=f2a2f22889f9f74c0a93ed7b1c605a891ae194046a3343d49c60d67fd1f61302 + +pre_build() { + vsed -e 's,/usr/local/etc/git-team/hooks,/usr/libexec/git-team/hooks,g' -i src/core/config/loader_test.go + vsed -e 's,/usr/local/etc/git-team/hooks,/usr/libexec/git-team/hooks,g' -i src/core/config/loader.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 +}