void-packages/srcpkgs/stack/template
2017-07-26 14:00:57 +02:00

35 lines
1.2 KiB
Bash

# Template file for 'stack'
pkgname=stack
version=1.5.0
revision=1
_stackage="lts-8.23"
hostmakedepends="cabal-install pkg-config"
makedepends="zlib-devel pcre-devel"
depends="git iana-etc"
short_desc="Cross-platform program for developing Haskell projects"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3"
homepage="http://haskellstack.org"
distfiles="https://github.com/commercialhaskell/stack/archive/v${version}.tar.gz
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
skip_extraction="cabal.config-${_stackage}"
checksum="2ffead80e9cc3b72480e9130bb639aaa8a6a684d8f6098a3843fe88803c8e478
cf29206c8b610f83423839a335a96d1cc8f4b974bb46254bf5c3ffe54cf94030"
nocross=yes
nopie=yes # network-2.6.2.1 build fails with a relocation
do_build() {
cabal sandbox init
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
cabal update
cabal install ${makejobs} --only-dependencies
cabal install ${makejobs} cpphs
cabal configure -v --prefix=/usr --libsubdir='$pkg' \
--datasubdir='$pkg' --docdir='$datadir/doc/$pkg'
cabal build ${makejobs}
}
do_install() {
vbin dist/build/stack/stack
vlicense LICENSE
}