# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=clamav pkgver=0.94.2 pkgrel=0 pkgdesc="An anti-virus toolkit for UNIX" url="http://www.clamav.net/" license="GPL" depends="zlib gmp" install=clamav.install makedepends="gmp-dev zlib-dev" subpackages="$pkgname-doc $pkgname-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz clamav.initd clamav.confd clamav-0.94.2-nls.patch $install" build() { cd "$srcdir/$pkgname-$pkgver" patch -p0 -i "$srcdir/clamav-0.94.2-nls.patch" || return 1 ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-clamav make || return 1 make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } md5sums="1181e6d62341b84708f126cc353f7ebf clamav-0.94.2.tar.gz d0c708403940c51e52eb27ea1610a27d clamav.initd 431dfe7403323e247a88b97beade5d78 clamav.confd 328a0c3449a6b516e443d7db5a0d4d01 clamav-0.94.2-nls.patch"