# 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 " 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 }