32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=2.7.3
|
|
revision=1
|
|
_stackage="lts-18.5"
|
|
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="47caf8818352c7f663eb0364f48b1f4d80832ae25c31ca483416a4b74c2c5b44
|
|
322bc85f38bf6726af6e588dde381d72f0c3e89970939b6a7b5b975cabd05d1a"
|
|
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
|
|
}
|