aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-email-address-list
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-11 11:36:13 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-13 09:08:07 +0000
commit9bf9954e196d3271088ae9cddd5bb6c82811a0ba (patch)
tree234776e66df6fb123e820394170c5a44535f0235 /main/perl-email-address-list
parent12e7bf03e0fc208afb09a53437fd29d829bf7add (diff)
downloadaports-9bf9954e196d3271088ae9cddd5bb6c82811a0ba.tar.bz2
aports-9bf9954e196d3271088ae9cddd5bb6c82811a0ba.tar.xz
main/perl-email-address-list: add missing make dependency and modernize
Diffstat (limited to 'main/perl-email-address-list')
-rw-r--r--main/perl-email-address-list/APKBUILD33
1 files changed, 13 insertions, 20 deletions
diff --git a/main/perl-email-address-list/APKBUILD b/main/perl-email-address-list/APKBUILD
index d8a87a3b0c..fcbad2047a 100644
--- a/main/perl-email-address-list/APKBUILD
+++ b/main/perl-email-address-list/APKBUILD
@@ -1,40 +1,33 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-email-address-list
pkgver=0.05
-pkgrel=1
+pkgrel=2
pkgdesc="RFC close address list parsing"
url="http://search.cpan.org/dist/Email-Address-List/"
arch="noarch"
license="GPL+ or Artistic"
depends="perl perl-email-address"
-makedepends="perl-dev perl-json"
-install=""
+makedepends="perl-dev perl-json perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Email-Address-List-$pkgver.tar.gz"
-_builddir="$srcdir"/Email-Address-List-$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/Email-Address-List-$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
}
-md5sums="0b723b59596f9dd998c35b0eb89cc935 Email-Address-List-0.05.tar.gz"
-sha256sums="705c23fc2163c2347ba0aea998450259f7b10577a368c6d310bd4e98b427a033 Email-Address-List-0.05.tar.gz"
sha512sums="cfb7ea59de8c164a632afdea2d269213052709d91d56869198e1e788452a1746d8f37ad681c946d4b705363311d95ad2babff6fadabda50818da3d2b9e14cde5 Email-Address-List-0.05.tar.gz"