summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/perl-mail-clamav/APKBUILD21
1 files changed, 16 insertions, 5 deletions
diff --git a/main/perl-mail-clamav/APKBUILD b/main/perl-mail-clamav/APKBUILD
index 600579085..bb6d68008 100644
--- a/main/perl-mail-clamav/APKBUILD
+++ b/main/perl-mail-clamav/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-mail-clamav
_realname=Mail-ClamAV
pkgver=0.29
-pkgrel=4
+pkgrel=5
pkgdesc="Perl extension for the clamav virus scanner"
url="http://search.cpan.org/~converter/Mail-ClamAV-0.29/"
arch="all"
@@ -14,14 +14,25 @@ install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CO/CONVERTER/$_realname-$pkgver.tar.gz"
-build() {
- cd "$srcdir/$_realname-$pkgver"
-
- sed -i -e 's%\(clamav-config --version\)%sh /usr/bin/\1%' Makefile.PL
+_builddir="$srcdir/$_realname-$pkgver"
+prepare() {
+ cd "$_builddir"
+ sed -i -e 's%\(clamav-config --version\)%sh /usr/bin/\1%' Makefile.PL || return 1
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+}
+
+build() {
+ cd "$_builddir"
make -j1 || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
+ # creates file collision among perl modules
+ find "$pkgdir" -name perllocal.pod -delete
+
}
md5sums="737ea1c041d9312cdcfe5b85eb45428e Mail-ClamAV-0.29.tar.gz"