void-packages/srcpkgs/stack/template
2015-11-23 11:42:37 +01:00

35 lines
1.2 KiB
Bash

# Template file for 'stack'
pkgname=stack
version=0.1.8.0
revision=1
_stackage="lts-3.15"
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="1cf990d9f975e5c20dfca6e6b292cebba376dbc8ffde22ce758208dad8b5f7b7
fe126ff0bc26d7777058719031b7db24b8e9695f278b200bc6ef1bbe64134794"
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
}