36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'git-annex'
|
|
pkgname=git-annex
|
|
version=6.20161012
|
|
revision=1
|
|
nocross=yes
|
|
build_style=haskell-stack
|
|
stackage="lts-7.0"
|
|
hostmakedepends="ghc stack pkg-config"
|
|
makedepends="gsasl-devel gnutls-devel libxml2-devel rsync curl lsof gnupg2 file-devel"
|
|
# 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://github.com/joeyh/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=5ee77e425a039611f4fa373907e52528d4c3d3fe19bfc82dbe0b8a373df36d63
|
|
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
|
|
}
|