diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-22 21:02:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-22 21:02:37 +0000 |
commit | 5957958c77d4b3a1a9037fb2f8aff9b6b1458332 (patch) | |
tree | b4e9713fb62cce13d56ded5e7487c2d5dbe6c5be /main/perl-datetime-format-natural/APKBUILD | |
parent | 94fe647934e9b6bdcb0d3e42162c9b8e4f2f7614 (diff) | |
download | aports-5957958c77d4b3a1a9037fb2f8aff9b6b1458332.tar.bz2 aports-5957958c77d4b3a1a9037fb2f8aff9b6b1458332.tar.xz |
main/perl-datetime-format-natural: build fix, modernize
Diffstat (limited to 'main/perl-datetime-format-natural/APKBUILD')
-rw-r--r-- | main/perl-datetime-format-natural/APKBUILD | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/main/perl-datetime-format-natural/APKBUILD b/main/perl-datetime-format-natural/APKBUILD index b1de6f3f1e..ad30114532 100644 --- a/main/perl-datetime-format-natural/APKBUILD +++ b/main/perl-datetime-format-natural/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-datetime-format-natural _pkgreal=DateTime-Format-Natural pkgver=1.05 -pkgrel=0 +pkgrel=1 pkgdesc="Create machine readable date/time with natural parsing logic" url="http://search.cpan.org/dist/DateTime-Format-Natural/" arch="noarch" @@ -18,23 +18,24 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHUBIGER/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - cd "$_builddir" +build() { + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - perl Build.PL installdirs=vendor || return 1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make } -build() { - cd "$_builddir" +check() { + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + make test } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |