void-packages/srcpkgs/stack/template

35 lines
1.1 KiB
Bash
Raw Normal View History

2015-08-15 17:48:40 +02:00
# Template file for 'stack'
pkgname=stack
version=0.1.3.0
revision=1
_stackage="lts-3.0"
hostmakedepends="cabal-install"
makedepends="zlib-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="f87537110aed8a5cddbf7ee8efb1219888541e46279a1a20d8a38f46c56dc9df
ba382498c125f8d946b8f33780ad61f1f284bd6b05dc033e12c22bf579afcf78"
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
vman man/man1/stack.1
vlicense LICENSE
}