diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-05-21 13:13:24 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-05-21 13:13:24 +0000 |
commit | af250c4e4bbb9504bf8469f0c43d075490253c5f (patch) | |
tree | fb8f7f04b3704a91a94d92da3aae2f4ace78596f /main/perl-mail-clamav/APKBUILD | |
parent | a7647e2fd986436967859a72378137608b86629e (diff) | |
download | aports-af250c4e4bbb9504bf8469f0c43d075490253c5f.tar.bz2 aports-af250c4e4bbb9504bf8469f0c43d075490253c5f.tar.xz |
main/perl-mail-clamav: fix file collision. Fixes #656
Diffstat (limited to 'main/perl-mail-clamav/APKBUILD')
-rw-r--r-- | main/perl-mail-clamav/APKBUILD | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/main/perl-mail-clamav/APKBUILD b/main/perl-mail-clamav/APKBUILD index 600579085a..bb6d68008f 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" |