diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-05-21 13:14:02 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-05-21 13:14:02 +0000 |
commit | 3cc0bf2f5874aad98b2e8473493038a6c9e280f0 (patch) | |
tree | 0e8d7386f6047dd92401b16c1029856a156b6f8c | |
parent | 098c01a38cafe9163f27e7f3dbd54e4a029e504d (diff) | |
parent | af250c4e4bbb9504bf8469f0c43d075490253c5f (diff) | |
download | aports-3cc0bf2f5874aad98b2e8473493038a6c9e280f0.tar.bz2 aports-3cc0bf2f5874aad98b2e8473493038a6c9e280f0.tar.xz |
Merge branch 'master' of ../aports-larena
-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 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" |