summaryrefslogtreecommitdiff
path: root/libre/clamav/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/clamav/PKGBUILD')
-rw-r--r--libre/clamav/PKGBUILD50
1 files changed, 22 insertions, 28 deletions
diff --git a/libre/clamav/PKGBUILD b/libre/clamav/PKGBUILD
index b81ff3dfe..00ef191d9 100644
--- a/libre/clamav/PKGBUILD
+++ b/libre/clamav/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 288711 2017-02-11 22:07:31Z foutrelis $
+# $Id: PKGBUILD 292502 2017-04-08 08:19:57Z foutrelis $
# Contributor (Arch): Dale Blount <dale@archlinux.org>
# Contributor (Arch): Gregor Ibic <gregor.ibic@intelicom.si>
# Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org>
@@ -9,7 +9,7 @@
_pkgname=clamav-libre
pkgname=clamav
pkgver=0.99.2
-pkgrel=3.parabola1
+pkgrel=5.parabola1
pkgdesc='Anti-virus toolkit for Unix, without nonfree decompression engine for RAR archives'
url='http://www.clamav.net/'
license=('GPL')
@@ -17,7 +17,7 @@ arch=('i686' 'x86_64' 'armv7h')
makedepends=('libmilter')
makedepends_x86_64=('llvm')
makedepends_i686=("${makedepends_x86_64[@]}")
-depends=('bzip2' 'libltdl' 'libxml2' 'curl')
+depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'pcre')
depends_x86_64=('llvm-libs')
depends_i686=("${depends_x86_64[@]}")
depends_armv7h=('gcc-libs')
@@ -31,21 +31,19 @@ source=("https://repo.parabola.nu/other/${_pkgname}/${_pkgname}-${pkgver}.tar.gz
'freshclam.conf'
'clamd.service'
'freshclamd.service'
- 'Add-support-for-LLVM-3.7.patch'
- 'Add-support-for-LLVM-3.8.patch'
- 'Add-support-for-LLVM-3.9.patch')
-mksha1sums=('c1a47411834d8527f7b40727aebee63f01d488af'
- 'SKIP')
-sha1sums=('f6460a9ce0edb7d76397e4f9b1ebd3cc2c7d544c'
- 'bb488a56b0f6a0760446cde89c1e3321e2717b78'
- 'a224ea9b4d0f4f196827347d54bed51e11c197ea'
- '887f624eb305f2446f55d8339e2972ad0cfe2b79'
- 'b767837d0279ad30b92c314cb762b73e5ad0415e'
- '77899cce83f04cbe134b30da376f879d2841f769'
- 'cda9a087e5593992150cb456e34c5f6f589aca82'
- '89765c80080c84f0a48c295ac11e1a4ce7f4cc14'
- '5a513779e59253b22aefe36451f941866178cc64'
- '16be511156965197f956a0f2147ce1be2a546008')
+ 'clamav-0.99.2-gcc-6.patch'
+ 'make_it_compile_against_openssl_1_1_0.patch')
+mksha256sums=('167bd6a13e05ece326b968fdb539b05c2ffcfef6018a274a10aeda85c2c0027a'
+ 'SKIP')
+sha256sums=('9cbca11e54c78129c0c9495ff40f42e83c34a430e832fdf86c9408bc397d6d07'
+ 'ce4b9b8c300614641af600c9a73b52a00ee8e47ccc9f91b2428a113b0ecff21b'
+ '0a61abee3b9bba94126afe3344e7d8e82da5120ca6dbd2b413b10f75da5b0b0d'
+ 'afdb95f93f7e11e163d368caccd5f6814206c6f0d74816b4f712c0267b50572a'
+ '127b39e13525ffb4242198cfb76f99d4d517e5f2fd9fa8dcad3f31fc9f82f952'
+ 'e376ab0cefeefa5ac5f1cd611718452ea8646198e854aca3cc0026f5ffe58fb4'
+ 'dd5ff6c79ee360da5f2221c4d9110a2a8886d86293f6c93c16bf74fdb126593c'
+ 'b2960553243392a4298f37d5ef537296e989e95f7cc084800b8e3ab6a251be6d'
+ '0a8e02a91bc3f2c99bd52dc475592637376baa991fe3f899b7745b840fc586c5')
backup=('etc/clamav/clamd.conf'
'etc/clamav/freshclam.conf'
@@ -63,19 +61,14 @@ mksource() {
prepare() {
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++
+ patch -Np1 -i ../clamav-0.99.2-gcc-6.patch
+ patch -Np1 -i ../make_it_compile_against_openssl_1_1_0.patch
+ autoreconf -fi
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 \
@@ -86,8 +79,9 @@ build() {
--disable-clamav \
--disable-zlib-vcheck \
--enable-milter \
- --disable-unrar \
- $x86_flags
+ --disable-unrar
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}