void-packages/srcpkgs/git-annex/template

35 lines
1.2 KiB
Bash
Raw Normal View History

2015-09-06 17:52:58 +02:00
# Template file for 'git-annex'
pkgname=git-annex
version=5.20150824
revision=3
2015-09-06 17:52:58 +02:00
nocross=yes
build_style=haskell-stack
stackage="lts-3.5"
2015-09-06 17:52:58 +02:00
hostmakedepends="ghc stack pkg-config"
makedepends="gsasl-devel gnutls-devel libxml2-devel rsync curl lsof gnupg2"
# depends are utilities required by git-annex
depends="git rsync curl lsof gnupg2"
short_desc="Git addon for managing large files"
maintainer="Evan Deaubl <evan@deaubl.name>"
license="GPL-3"
homepage="http://git-annex.branchable.com"
distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=45088dd5ff5a63ca38965e60843e42c1b8424b3437b58af68929cf61ef0819e4
2015-09-06 17:52:58 +02:00
post_extract() {
rm -rf standalone/android/tmp
2015-09-06 17:52:58 +02:00
}
# 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
}