summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac David <isacdaavid@isacdaavid.info>2017-02-16 01:09:13 -0600
committerIsaac David <isacdaavid@isacdaavid.info>2017-02-16 01:09:13 -0600
commitcfdfbd208325a5df7b4646a53467f8c87e7397a2 (patch)
tree94b9197e840593edad0c8914263769e5f1f427a2
parente0be90e816e066a9a9c77d258609b0323658007e (diff)
downloadabslibre-cfdfbd208325a5df7b4646a53467f8c87e7397a2.tar.gz
abslibre-cfdfbd208325a5df7b4646a53467f8c87e7397a2.tar.bz2
abslibre-cfdfbd208325a5df7b4646a53467f8c87e7397a2.zip
clamav: re-enable multi-architecture support
-rw-r--r--libre/clamav/PKGBUILD28
1 files changed, 19 insertions, 9 deletions
diff --git a/libre/clamav/PKGBUILD b/libre/clamav/PKGBUILD
index ef0cb9f28..b81ff3dfe 100644
--- a/libre/clamav/PKGBUILD
+++ b/libre/clamav/PKGBUILD
@@ -14,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' 'llvm')
-depends=('bzip2' 'libltdl' 'llvm-libs' 'libxml2' 'curl')
+makedepends=('libmilter')
+makedepends_x86_64=('llvm')
+makedepends_i686=("${makedepends_x86_64[@]}")
+depends=('bzip2' 'libltdl' 'libxml2' 'curl')
+depends_x86_64=('llvm-libs')
+depends_i686=("${depends_x86_64[@]}")
+depends_armv7h=('gcc-libs')
validpgpkeys=('B964E6D7BC7D7C82CCB8D45840B8EA2364221D53'
'F79FB2D08751574C5D3FDFFBB3D5342C260429A0')
mksource=("http://www.clamav.net/downloads/production/${pkgname}-${pkgver}.tar.gz"{,.sig})
@@ -56,15 +61,21 @@ mksource() {
}
prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- patch -Np1 -i ../Add-support-for-LLVM-3.7.patch
- patch -Np1 -i ../Add-support-for-LLVM-3.8.patch
- patch -Np1 -i ../Add-support-for-LLVM-3.9.patch
- autoreconf -vi libclamav/c++
+ if [ "$CARCH" = i686 -o "$CARCH" = x86_64 ]; then
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i ../Add-support-for-LLVM-3.7.patch
+ patch -Np1 -i ../Add-support-for-LLVM-3.8.patch
+ patch -Np1 -i ../Add-support-for-LLVM-3.9.patch
+ autoreconf -vi libclamav/c++
+ fi
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ if [ "$CARCH" = i686 -o "$CARCH" = x86_64 ]; then
+ local x86_flags="--with-system-llvm \
+ --with-llvm-linking=dynamic"
+ fi
# --disable-zlib-vcheck because the configure script thinks that
# zlib 1.2.11 is older than 1.2.2
./configure \
@@ -76,8 +87,7 @@ build() {
--disable-zlib-vcheck \
--enable-milter \
--disable-unrar \
- --with-system-llvm \
- --with-llvm-linking=dynamic
+ $x86_flags
make
}