diff options
-rw-r--r-- | libre/linux-libre-lts/PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libre/linux-libre-lts/PKGBUILD b/libre/linux-libre-lts/PKGBUILD index 55a4c7d6e..653a7ac84 100644 --- a/libre/linux-libre-lts/PKGBUILD +++ b/libre/linux-libre-lts/PKGBUILD @@ -9,6 +9,8 @@ # Based on linux-lts package +# NOTE: Don't build htmldocs due to an error in sphinx (armv7h only) + _replacesarchkernel=('linux%') # '%' gets replaced with kernel suffix _replacesoldkernels=() # '%' gets replaced with kernel suffix _replacesoldmodules=() # '%' gets replaced with kernel suffix @@ -152,7 +154,9 @@ prepare() { build() { cd $_srcname make all - make htmldocs + if ! [ "$CARCH" = armv7h ]; then + make htmldocs + fi } _package() { @@ -316,7 +320,8 @@ _package-docs() { ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase" } -pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs") +pkgname=("$pkgbase" "$pkgbase-headers") +[[ $CARCH = armv7h ]] || pkgname+=("$pkgbase-docs") for _p in "${pkgname[@]}"; do eval "package_$_p() { $(declare -f "_package${_p#$pkgbase}") |