31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=2.7.5
|
|
revision=1
|
|
_stackage="lts-18.14"
|
|
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://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz
|
|
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
|
|
checksum="9ddd44c2a62e9404194d69e7dc1c94e707910620316b66d6ac0b3201a8f37e80
|
|
78577c091074d78f9d6e09d6e31e7fc8ac2ddbb0dbc4ac65c606adcac4957d7f"
|
|
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 update
|
|
HOME=$PWD cabal new-build ${makejobs} --flag disable-git-info \
|
|
--constraint 'lukko -ofd-locking' # https://github.com/haskell/cabal/issues/7313
|
|
}
|
|
|
|
do_install() {
|
|
eval vbin dist-newstyle/build/*/*/*/build/stack/stack
|
|
vlicense LICENSE
|
|
}
|