summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/clamav/PKGBUILD20
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
}