cabal-install: fix build.

This commit is contained in:
Leah Neukirchen 2022-04-28 19:11:08 +02:00
parent d038f370cf
commit 557e2e64ce

View file

@ -1,7 +1,7 @@
# Template file for 'cabal-install' # Template file for 'cabal-install'
pkgname=cabal-install pkgname=cabal-install
version=3.6.3.0 version=3.6.3.0
revision=1 revision=2
wrksrc=cabal-Cabal-v${version} wrksrc=cabal-Cabal-v${version}
hostmakedepends="ghc curl tar which" hostmakedepends="ghc curl tar which"
makedepends="gmp-devel libffi-devel zlib-devel python3" makedepends="gmp-devel libffi-devel zlib-devel python3"
@ -15,6 +15,10 @@ checksum=dea086acad6d9fe5fe22d838b95b4e988022e8519f38d41609119ea32bfb7466
nopie_files="/usr/bin/cabal" nopie_files="/usr/bin/cabal"
nocross=yes nocross=yes
post_extract() {
cp "${FILESDIR}/linux-9.0.2.json" bootstrap/
}
post_patch() { post_patch() {
case "${XBPS_TARGET_MACHINE}" in case "${XBPS_TARGET_MACHINE}" in
i686*) i686*)
@ -24,7 +28,6 @@ post_patch() {
} }
do_build() { do_build() {
cp "${FILESDIR}/linux-9.0.2.json" bootstrap/
PREFIX=$PWD bootstrap/bootstrap.py -d bootstrap/linux-9.0.2.json PREFIX=$PWD bootstrap/bootstrap.py -d bootstrap/linux-9.0.2.json
} }
do_install() { do_install() {