diff options
author | Isaac David <isacdaavid@isacdaavid.info> | 2016-08-01 14:52:46 -0500 |
---|---|---|
committer | Isaac David <isacdaavid@isacdaavid.info> | 2016-08-01 14:52:46 -0500 |
commit | ea39700b6a7993b5bb68e883cb339efc8668b73f (patch) | |
tree | 2617f408cbf87ae8c9b503963d20a37b0444844b | |
parent | 8b8c5cb32db6b09d1255fb235fd91f61ff21d3e5 (diff) | |
download | abslibre-ea39700b6a7993b5bb68e883cb339efc8668b73f.tar.gz abslibre-ea39700b6a7993b5bb68e883cb339efc8668b73f.tar.bz2 abslibre-ea39700b6a7993b5bb68e883cb339efc8668b73f.zip |
clamav: fix armv7h build
-rw-r--r-- | libre/clamav/PKGBUILD | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/libre/clamav/PKGBUILD b/libre/clamav/PKGBUILD index b0f77aafe..a30f36d62 100644 --- a/libre/clamav/PKGBUILD +++ b/libre/clamav/PKGBUILD @@ -4,6 +4,7 @@ # Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> # Contributor: André Silva <emulatorman@parabola.nu> +# Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info> _pkgname=clamav-libre pkgname=clamav @@ -13,8 +14,13 @@ pkgdesc='Anti-virus toolkit for Unix, without nonfree decompression engine for R url='http://www.clamav.net/' license=('GPL') arch=('i686' 'x86_64' 'armv7h') -makedepends=('libmilter' 'llvm35') -depends=('bzip2' 'libltdl' 'llvm35-libs' 'libxml2' 'curl') +makedepends=('libmilter') +makedepends_i686=('llvm35') +makedepends_x86_64=("${makedepends_i686[@]}") +depends=('bzip2' 'libltdl' 'libxml2' 'curl') +depends_i686=('llvm35-libs') +depends_x86_64=("${depends_i686[@]}") +depends_armv7h=('gcc-libs') validpgpkeys=('B964E6D7BC7D7C82CCB8D45840B8EA2364221D53' 'F79FB2D08751574C5D3FDFFBB3D5342C260429A0') mksource=("http://www.clamav.net/downloads/production/${pkgname}-${pkgver}.tar.gz"{,.sig}) @@ -50,6 +56,10 @@ mksource() { build() { cd "${srcdir}/${pkgname}-${pkgver}" + if [ "$CARCH" != "armv7h" ]; then + local extra_options="--with-system-llvm \ + --with-llvm-linking=dynamic" + fi ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ @@ -57,10 +67,8 @@ build() { --with-dbdir=/var/lib/clamav \ --disable-clamav \ --enable-milter \ - --with-system-llvm \ - --with-llvm-linking=dynamic \ - --disable-unrar - + --disable-unrar \ + $extra_options make } |