33 lines
1.4 KiB
Bash
33 lines
1.4 KiB
Bash
# Template file for 'darcs'
|
|
pkgname=darcs
|
|
version=2.14.2
|
|
revision=3
|
|
build_style=haskell-stack
|
|
hostmakedepends="unzip"
|
|
makedepends="zlib-devel libcurl-devel ncurses-devel"
|
|
short_desc="Change-focused cross-platform version control system"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://darcs.net/"
|
|
distfiles="http://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=65d160a43874960dcba114c0b74d9c7b25d098486f515655502f42ff0c22a27e
|
|
nopie_files="/usr/bin/darcs"
|
|
nocross=yes
|
|
|
|
do_configure() {
|
|
vsed -e 's/< *0.5/<1/' -e 's/< *2.13/<3/' -e 's/< *4.13/<5/' -e 's/< *1.3/<2/' -e 's/< *2/<4/' -i ${pkgname}.cabal
|
|
vsed -e '/sDistHook = /,+14d' -i Setup.hs
|
|
vsed -e '/fail\ \ \ = failSM/i instance MonadFail SM where' -i src/Darcs/Patch/ReadMonads.hs
|
|
vsed -e 's/fail \$/error $/' -i src/Darcs/Util/Tree/Monad.hs src/Darcs/Repository/Diff.hs src/Darcs/Patch/Prim/V1/Apply.hs
|
|
vsed -e 's/Monad m => PatchInfoAnd/MonadFail m => PatchInfoAnd/' -i src/Darcs/Patch/PatchInfoAnd.hs
|
|
vsed -e 's/fail /error /' -i src/Darcs/Patch/Depends.hs src/Darcs/Patch/Match.hs src/Darcs/Repository/Match.hs
|
|
vsed -e '/fail _ /i instance MonadFail Perhaps where' -i src/Darcs/Patch/{,Prim}/V1/Commute.hs
|
|
}
|
|
|
|
post_install() {
|
|
vinstall contrib/darcs_completion 644 usr/share/bash-completion/completions
|
|
|
|
cd .stack-work/dist/*/*/build/darcs
|
|
vman darcs.1
|
|
}
|