From 682f09400477367c80199d2f00677dbcf435fa1a Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Sat, 11 Nov 2017 12:29:44 +0000 Subject: main/perl-text-password-pronounceable: add missing make dependency and modernize --- main/perl-text-password-pronounceable/APKBUILD | 31 +++++++++++--------------- 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'main/perl-text-password-pronounceable') diff --git a/main/perl-text-password-pronounceable/APKBUILD b/main/perl-text-password-pronounceable/APKBUILD index c6f01c8b13..7cbb331e6e 100644 --- a/main/perl-text-password-pronounceable/APKBUILD +++ b/main/perl-text-password-pronounceable/APKBUILD @@ -2,37 +2,32 @@ # Maintainer: Natanael Copa pkgname=perl-text-password-pronounceable pkgver=0.30 -pkgrel=0 +pkgrel=1 pkgdesc="Text::Password::Pronounceable perl module" url="http://search.cpan.org/dist/Text-Password-Pronounceable/" arch="noarch" license="GPLv2 or Artistic" depends="perl" -makedepends="perl-dev" -install="" +makedepends="perl-dev perl-module-install" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/T/TS/TSIBLEY/Text-Password-Pronounceable-$pkgver.tar.gz" -_builddir="$srcdir"/Text-Password-Pronounceable-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/Text-Password-Pronounceable-$pkgver" build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -- cgit v1.2.3