From dcc0694d5a710359ba33dc58d89a5fac10b21620 Mon Sep 17 00:00:00 2001 From: Evan Deaubl Date: Tue, 15 Sep 2015 11:22:49 -0500 Subject: [PATCH] git-annex: Fix missing man pages and helper scripts --- srcpkgs/git-annex/template | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/srcpkgs/git-annex/template b/srcpkgs/git-annex/template index fc73e7f71f2..fbfb709bc93 100644 --- a/srcpkgs/git-annex/template +++ b/srcpkgs/git-annex/template @@ -1,7 +1,7 @@ # Template file for 'git-annex' pkgname=git-annex version=5.20150824 -revision=2 +revision=3 nocross=yes build_style=haskell-stack stackage="lts-3.5" @@ -19,3 +19,16 @@ checksum=45088dd5ff5a63ca38965e60843e42c1b8424b3437b58af68929cf61ef0819e4 post_extract() { rm -rf standalone/android/tmp } + +# These install steps are pulled from the install target in the +# git-annex Makefile. The target can't be called directly because it is +# comingled with the Cabal build, and we're using Stackage instead +# Make sure they are in sync with each version upgrade +post_install() { + ln -sf git-annex ${DESTDIR}/usr/bin/git-annex-shell + + vmkdir usr/share/man/man1 + vcopy man/*.1 usr/share/man/man1 + + vinstall bash-completion.bash 0644 usr/share/bash-completion/completions git-annex +}