31 lines
1.0 KiB
Bash
31 lines
1.0 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=2.3.0.1
|
|
revision=1
|
|
_stackage="lts-15.4"
|
|
hostmakedepends="cabal-install pkg-config unzip"
|
|
makedepends="zlib-devel pcre-devel"
|
|
depends="git gmp-devel iana-etc"
|
|
short_desc="Cross-platform program for developing Haskell projects"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://haskellstack.org"
|
|
distfiles="https://github.com/commercialhaskell/${pkgname}/archive/v${version}.tar.gz
|
|
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
|
|
checksum="a303a144dd3a37479e5b0fbf14d24e8d25d510bb038e413f14680ddb91036fd6
|
|
4147e6738cf6ef38cfd48048ef0992fb00e786068592e359fdb804e3d9ed4781"
|
|
skip_extraction="cabal.config-${_stackage}"
|
|
nocross=yes
|
|
nopie_files="/usr/bin/stack"
|
|
|
|
do_build() {
|
|
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
|
|
HOME=$PWD cabal new-update
|
|
HOME=$PWD cabal new-build ${makejobs} --flag disable-git-info
|
|
}
|
|
|
|
do_install() {
|
|
eval vbin dist-newstyle/build/*/*/*/build/stack/stack
|
|
vlicense LICENSE
|
|
}
|