void-packages/srcpkgs/git-annex/template

37 lines
1.2 KiB
Bash
Raw Normal View History

2015-09-06 15:52:58 +00:00
# Template file for 'git-annex'
pkgname=git-annex
2016-10-31 07:52:13 +00:00
version=6.20161027
2016-10-12 17:33:38 +00:00
revision=1
2015-09-06 15:52:58 +00:00
nocross=yes
build_style=haskell-stack
2016-09-20 15:58:03 +00:00
stackage="lts-7.0"
hostmakedepends="pkg-config"
2016-03-06 07:53:20 +00:00
makedepends="gsasl-devel gnutls-devel libxml2-devel rsync curl lsof gnupg2 file-devel"
2015-09-06 15:52:58 +00:00
# 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"
2016-05-28 16:42:13 +00:00
distfiles="http://github.com/joeyh/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
2016-10-31 07:52:13 +00:00
checksum=3dd91e1a796923d98ef47293a5058b082b987f26fe9da1f82651b6e84feb261b
2016-01-12 15:31:01 +00:00
nopie=yes
post_extract() {
# messes up stack dependency resolution
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
}