OCaml 4.14.0 rebuild
[arch-packages.git] / razor / trunk / PKGBUILD
blob98fc2527b89a89bf5d43d4961e1febc0980522bc
1 # Maintainer:
2 # Contributor: Dale Blount <dale@archlinux.org>
3 # Contributor: Manolis Tzanidakis
5 pkgname=razor
6 pkgver=2.85
7 pkgrel=17
8 pkgdesc="A distributed, collaborative, spam detection and filtering network"
9 arch=('x86_64')
10 url="http://razor.sourceforge.net"
11 license=('PerlArtistic')
12 depends=('perl-net-dns' 'perl-digest-sha1' 'perl-uri' 'perl-digest-nilsimsa' 'perl')
13 options=('!emptydirs')
14 source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-agents-${pkgver}.tar.bz2"
15          razor-2.85-cosmetic-pv-fix.patch
16          razor-2.85-makefile-quoting-fix.patch)
17 md5sums=('014d08db40187cb1316482191566b012'
18          '850645e088b21845f4b6653623d59515'
19          '6543caaf0a4086e65de1fb61c8dd5b7b')
21 prepare() {
22   cd ${pkgname}-agents-${pkgver}
24   patch -p1 -i ../razor-2.85-cosmetic-pv-fix.patch
26   # ExtUtils::MakeMaker >= 6.99_09 has quotes around paths
27   patch -p1 -i ../razor-2.85-makefile-quoting-fix.patch
30 build() {
31   cd ${pkgname}-agents-${pkgver}
32   perl Makefile.PL INSTALLDIRS=vendor
33   make
36 check() {
37   cd ${pkgname}-agents-${pkgver}
38   make test
41 package() {
42   cd ${pkgname}-agents-${pkgver}
43   make DESTDIR="${pkgdir}" install