aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2019-02-04 07:39:30 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-02-04 07:39:41 +0000
commitb0cee5b93f3dfdc0eb15ee6a56118b37faed8706 (patch)
treea90f8362bf9196bdc82fedde5fb8d69d5307d6cd
parent70395c249b0b278cfce0965c3306a92384fa86f5 (diff)
downloadaports-b0cee5b93f3dfdc0eb15ee6a56118b37faed8706.tar.gz
aports-b0cee5b93f3dfdc0eb15ee6a56118b37faed8706.tar.bz2
aports-b0cee5b93f3dfdc0eb15ee6a56118b37faed8706.tar.xz
main/perl-mail-clamav: upgrade to 0.30
Modernize APKBUILD, disable check()
-rw-r--r--main/perl-mail-clamav/APKBUILD28
1 files changed, 12 insertions, 16 deletions
diff --git a/main/perl-mail-clamav/APKBUILD b/main/perl-mail-clamav/APKBUILD
index 5ea1b0d6f1..8a8e7aeb4f 100644
--- a/main/perl-mail-clamav/APKBUILD
+++ b/main/perl-mail-clamav/APKBUILD
@@ -1,9 +1,9 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-mail-clamav
-_realname=Mail-ClamAV
-pkgver=0.29
-pkgrel=14
+_pkgname=Mail-ClamAV
+pkgver=0.30
+pkgrel=0
pkgdesc="Perl extension for the clamav virus scanner"
url="http://search.cpan.org/~converter/Mail-ClamAV-0.29/"
arch="all"
@@ -12,32 +12,28 @@ depends="perl clamav"
makedepends="bzip2-dev clamav-dev zlib-dev
perl-dev perl-inline perl-inline-c perl-parse-recdescent
"
-install=
+options="!check" # requires clamav db in /var/lib/clamav
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/C/CO/CONVERTER/$_realname-$pkgver.tar.gz
- 0001.patch"
-
-builddir="$srcdir/$_realname-$pkgver"
+source="https://cpan.metacpan.org/authors/id/C/CA/CAVAC/Mail-ClamAV-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
- cd "$builddir"
sed -i -e 's%\(clamav-config --version\)%sh /usr/bin/\1%' Makefile.PL
default_prepare
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make -j1
}
+check() {
+ make test
+}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
-
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="e58d846600a3764d4b55eae545754bf187bf77cb0125dbbfc71944c095ddfa4fe11e59888840045c1c72708a729aaa57f89ba91ce3e6c7934013b5a2790a7006 Mail-ClamAV-0.29.tar.gz
-4d78b6ba5fc9235a8d72161b7271025e5d1c6395730d75067d3c4d1821c99fa400171cdbf98b3a74675f17ecc64e477c42333126536efb5f37990aa57008ba1f 0001.patch"
+sha512sums="0a6a029df2a46cbf09eeade22cd8b525f4e75c80f05a4833e41c52b4c1653f8f1cca6e19f6011354f053e3b4ec235d75bcf672bf91f63d0f5a92914f2e1f4e89 Mail-ClamAV-0.30.tar.gz"