Commit b3115650 authored by Leonardo Arena's avatar Leonardo Arena

main/perl-mail-clamav: fix file collision. Fixes #656

(cherry picked from commit af250c4e)
parent e31f64f8
......@@ -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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment