mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 20:46:41 +02:00
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
pkgname=razor
|
|
_realname=Razor2-Client-Agent
|
|
pkgver=2.86
|
|
pkgrel=0
|
|
pkgdesc="Vipul's Razor is a distributed, collaborative spam detection and filtering network"
|
|
url="https://metacpan.org/dist/Razor2-Client-Agent"
|
|
arch="all"
|
|
license="Artistic-2.0"
|
|
depends="perl perl-digest-sha1 perl-getopt-long perl-uri"
|
|
makedepends="perl-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/T/TO/TODDR/Razor2-Client-Agent-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_realname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
}
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
}
|
|
|
|
sha512sums="
|
|
590ff469b41df46b7bbbd7b2bf2d8d243a61aeb49890fa8be9d3bad3413c8f4064c1c455d8e8e924fc6f50181c402fccd214222cdf050e88f4dd3285b4761e88 Razor2-Client-Agent-2.86.tar.gz
|
|
"
|