35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=0.1.3.1
|
|
revision=1
|
|
_stackage="nightly-2015-08-15"
|
|
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="3e6a575a3f5206af345912c4deba9552dfb156391357cec4eb1c2a9028ba4c51
|
|
3c8f30787d5d224ccf1934b9e9d16e09f0e3621deb94915c658555e03983d2f1"
|
|
|
|
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
|
|
}
|