sbcl 2.3.0 rebuild
[arch-packages.git] / razor / trunk / PKGBUILD
blob20581dc894ab050c27ef131087116c16ca211d0e
1 # Maintainer:
2 # Contributor: Dale Blount <dale@archlinux.org>
3 # Contributor: Manolis Tzanidakis
5 pkgname=razor
6 pkgver=2.85
7 pkgrel=18
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 sha256sums=('7fe0afe73e5b3979444dd86e2ad25ea99bc05b23d5648d357544f78f0b6eb6d7'
18             '9b9e40a6ce0220bb2228dd7807a14ecd7febe5290ace74744eea90ab9ab13aa5'
19             'd6ad13978170ad5914383db43376a89f38c03a17db1780d1e0df6f9c9ececd07')
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