void-packages/srcpkgs/stack/template

40 lines
1.2 KiB
Bash
Raw Normal View History

2015-08-15 15:48:40 +00:00
# Template file for 'stack'
pkgname=stack
2015-10-19 13:24:37 +00:00
version=0.1.6.0
revision=1
_stackage="lts-3.10"
2015-08-15 15:48:40 +00:00
hostmakedepends="cabal-install"
2015-09-14 12:36:38 +00:00
makedepends="zlib-devel pcre-devel"
2015-08-15 15:48:40 +00:00
depends="git iana-etc"
short_desc="Cross-platform program for developing Haskell projects"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD-3"
homepage="https://github.com/commercialhaskell/stack"
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}"
2015-10-19 13:24:37 +00:00
checksum="71014893d9a01f33c8e7400357813f610cc264a011d5e6af3ca8f9b598940d36
bd7ab6dc172946196bb834aa9527327fbd6ee38644929b8b2d84c5486ad0bac7"
2015-09-28 11:34:00 +00:00
nocross=yes
2015-08-15 15:48:40 +00:00
do_build() {
2015-09-14 12:36:38 +00:00
# Zap flags for broken pcre-light-0.4.0.3,
# ghc doesn't use them anyway.
export LDFLAGS=
export CPPFLAGS=
2015-08-15 15:48:40 +00:00
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}
2015-08-31 11:40:27 +00:00
}
2015-08-15 15:48:40 +00:00
do_install() {
vbin dist/build/stack/stack
vlicense LICENSE
}