c5e98c3877
Our sed call broke the cabal.config which resulted in unfit dependencies. Fixes #4747.
36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=1.1.2
|
|
revision=2
|
|
_stackage="lts-6.17"
|
|
hostmakedepends="cabal-install pkg-config"
|
|
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="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="8f43d69a00a8861b156705a634e55179524cefbd98e6c29182e7bdcb57d8b3be
|
|
2fe4734c6033257966c0f8beba7420e003286498c97326d313ded0ae9f5cc9eb"
|
|
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
|
|
sed -i 's/Cabal ==.*/Cabal ==1.24.0.0,/' cabal.config # XXX hack for cabal-install
|
|
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
|
|
}
|