bat: fix build on x86 secondary arch (#4279)

This commit is contained in:
Crestwave
2019-10-09 11:27:31 +08:00
committed by waddlesplash
parent 892f69ca70
commit db47965c7f
2 changed files with 89 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ HOMEPAGE="https://github.com/sharkdp/bat"
COPYRIGHT="2018-2019 bat developers"
LICENSE="Apache v2
MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="1dd184ddc9e5228ba94d19afc0b8b440bfc1819fef8133fe331e2c0ec9e3f8e2"
SOURCE_FILENAME="bat-$portVersion.tar.gz"
@@ -434,7 +434,7 @@ CHECKSUM_SHA256_141="65923dd1784f44da1d2c3dbbc5e822045628c590ba72123e1c73d3c230c
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="!x86"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$prefix/bin
fi