void-packages/srcpkgs/cabal-install/template
slotThe 152e39e797 cabal-install: update to 3.6.2.0
As of version 3.6.0.0, Cabal does not issue separate versions of
`cabal-install` on GitHub anymore.  Hence, we have to change the
respective paths and wrksrc directories.
2022-03-11 14:42:58 +01:00

34 lines
998 B
Bash

# Template file for 'cabal-install'
pkgname=cabal-install
version=3.6.2.0
revision=1
wrksrc=cabal-Cabal-v${version}
hostmakedepends="ghc curl tar which"
makedepends="gmp-devel libffi-devel zlib-devel python3"
depends="ghc"
short_desc="Command-line interface for Cabal and Hackage"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://hackage.haskell.org/package/cabal-install"
distfiles="https://github.com/haskell/cabal/archive/Cabal-v${version}.tar.gz"
checksum=dcf31e82cd85ea3236be18cc36c68058948994579ea7de18f99175821dbbcb64
nopie_files="/usr/bin/cabal"
nocross=yes
post_patch() {
case "${XBPS_TARGET_MACHINE}" in
i686*)
# https://github.com/haskell/cabal/issues/7313
vsed -i -e 's/+ofd-locking/-ofd-locking/' bootstrap/linux-8.10.7.json ;;
esac
}
do_build() {
PREFIX=$PWD bootstrap/bootstrap.py -d bootstrap/linux-8.10.7.json
}
do_install() {
vbin _build/bin/cabal
PREFIX=$PWD _build/bin/cabal man --raw > cabal.1
vman cabal.1
vlicense LICENSE
}