b9f94ef999
Unix-compat has been bumped in 14.1 so it's no longer a problem for musl.
30 lines
1 KiB
Bash
30 lines
1 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=2.1.3.1
|
|
revision=2
|
|
_stackage="lts-14.1"
|
|
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="f983369a22a3e3af9ae09770cf34e4ba439cc7f5ef5a0e87f4db11c1ec5356e0
|
|
c077d34ebe0b5139f57492770c7fd1dabb4b81df0ed842e6ca30b002d9fe78ec"
|
|
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 v2-update
|
|
HOME=$PWD cabal v2-build ${makejobs} --flag disable-git-info
|
|
}
|
|
|
|
do_install() {
|
|
eval vbin dist-newstyle/build/*/*/*/build/stack/stack
|
|
vlicense LICENSE
|
|
}
|