40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=0.1.6.0
|
|
revision=1
|
|
_stackage="lts-3.10"
|
|
hostmakedepends="cabal-install"
|
|
makedepends="zlib-devel pcre-devel"
|
|
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}"
|
|
checksum="71014893d9a01f33c8e7400357813f610cc264a011d5e6af3ca8f9b598940d36
|
|
bd7ab6dc172946196bb834aa9527327fbd6ee38644929b8b2d84c5486ad0bac7"
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
# Zap flags for broken pcre-light-0.4.0.3,
|
|
# ghc doesn't use them anyway.
|
|
export LDFLAGS=
|
|
export CPPFLAGS=
|
|
|
|
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
|
|
}
|