void-packages/srcpkgs/stack/template

32 lines
1.1 KiB
Bash

# Template file for 'stack'
pkgname=stack
version=2.7.1
revision=2
_stackage="lts-17.5"
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="605bd8368b6fef9323ea71b79b08dd62270c49089a86b79fe67355f6b82cbc26
d03bee7e51bbdec5053573f94f644a6baeb140cdd95dbe47261e03c04306b252"
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
}