31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'stack'
|
|
pkgname=stack
|
|
version=1.9.3
|
|
revision=2
|
|
_stackage="lts-13.2"
|
|
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="3-clause-BSD"
|
|
homepage="http://haskellstack.org"
|
|
distfiles="https://github.com/commercialhaskell/${pkgname}/releases/download/v${version}/${pkgname}-${version}-sdist-1.tar.gz
|
|
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
|
|
checksum="14e06a71bf6fafbb2d468f83c70fd4e9490395207d6530ab7b9fc056f8972a46
|
|
82b066829f560b5860cafd2ba5d5ccb48098ea5d34a7dc2cb6ec20e3780dea29"
|
|
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
|
|
}
|