void-packages/srcpkgs/darcs/template
2015-08-15 22:05:07 +02:00

27 lines
847 B
Bash

# Template file for 'darcs'
pkgname=darcs
version=2.10.1
revision=1
nocross=yes
hostmakedepends="ghc stack"
makedepends="zlib-devel libcurl-devel ncurses-devel"
short_desc="Change-focused cross-platform version control system"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://darcs.net/"
distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=f1ef65b43780e7593ca1afdae5ecf44ed91d62cc1be360693a52c5ff7b57ee94
do_build() {
export STACK_ROOT=$wrksrc/.stack
cp ${FILESDIR}/stack.yaml .
stack ${makejobs} build --flag darcs:use-time-1point5
}
do_install() {
export STACK_ROOT=$wrksrc/.stack
vmkdir usr/bin
stack install --flag darcs:use-time-1point5 --local-bin-path=${DESTDIR}/usr/bin
vinstall contrib/darcs_completion 644 etc/bash_completion.d
}