aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-05-09 06:20:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-05-09 06:20:34 +0000
commit7678ddf678a94b1fc18d81917e3f4daf68f690dd (patch)
treef817595589436ea8454d1a2a9f6546fdba14c3e1
parentd7a05202a4d9faf0d8c4a890069df26eb27f11aa (diff)
downloadaports-7678ddf678a94b1fc18d81917e3f4daf68f690dd.tar.gz
aports-7678ddf678a94b1fc18d81917e3f4daf68f690dd.tar.bz2
aports-7678ddf678a94b1fc18d81917e3f4daf68f690dd.tar.xz
main/perl-mail-clamav: modernize
-rw-r--r--main/perl-mail-clamav/APKBUILD20
1 files changed, 8 insertions, 12 deletions
diff --git a/main/perl-mail-clamav/APKBUILD b/main/perl-mail-clamav/APKBUILD
index cc30ec1870..5ea1b0d6f1 100644
--- a/main/perl-mail-clamav/APKBUILD
+++ b/main/perl-mail-clamav/APKBUILD
@@ -17,26 +17,22 @@ subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CO/CONVERTER/$_realname-$pkgver.tar.gz
0001.patch"
-_builddir="$srcdir/$_realname-$pkgver"
+builddir="$srcdir/$_realname-$pkgver"
prepare() {
- cd "$_builddir"
- sed -i -e 's%\(clamav-config --version\)%sh /usr/bin/\1%' Makefile.PL || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ 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"
- make -j1 || return 1
+ cd "$builddir"
+ make -j1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete