void-packages/srcpkgs/stack/template
2018-01-02 16:55:32 +01:00

35 lines
1.2 KiB
Bash

# Template file for 'stack'
pkgname=stack
version=1.6.3
revision=2
_stackage="lts-10.2"
hostmakedepends="cabal-install pkg-config"
makedepends="zlib-devel pcre-devel"
depends="git iana-etc"
short_desc="Cross-platform program for developing Haskell projects"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3"
homepage="http://haskellstack.org"
distfiles="https://github.com/commercialhaskell/${pkgname}/releases/download/v${version}/${pkgname}-${version}-sdist-1.tar.gz
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
skip_extraction="cabal.config-${_stackage}"
checksum="e3fdd37f36acec830d5692be4a5a5fcb5862112eebc4c11f6c3689ec86dba49b
66b74d1952ae5f7ab6bec2cab3c23ed90aad6c8d5e6105c178074eab9e9b3889"
nocross=yes
nopie_files="/usr/bin/stack"
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
}