void-packages/srcpkgs/stack/template

32 lines
1.1 KiB
Bash

# Template file for 'stack'
pkgname=stack
version=2.7.5
revision=2
_stackage="lts-19.0"
hostmakedepends="cabal-install pkg-config unzip"
makedepends="zlib-devel pcre-devel"
depends="git gmp-devel iana-etc"
short_desc="Cross-platform program for developing Haskell projects"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://haskellstack.org"
distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
checksum="9ddd44c2a62e9404194d69e7dc1c94e707910620316b66d6ac0b3201a8f37e80
2e836f769693cde2592963f200c97a3e8a87eb58777fa4289d7c3c671f971186"
skip_extraction="cabal.config-${_stackage}"
nocross=yes
nopie_files="/usr/bin/stack"
do_build() {
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
HOME=$PWD cabal update
HOME=$PWD cabal new-build ${makejobs} --flag disable-git-info \
--constraint 'lukko -ofd-locking' # https://github.com/haskell/cabal/issues/7313
}
do_install() {
eval vbin dist-newstyle/build/*/*/*/build/stack/stack
vlicense LICENSE
}