aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-16 19:38:33 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-11-16 19:51:51 +0000
commit4ab842ad052c58b72dccb2f8ad90bec4831327cc (patch)
tree9d6dff055ec701b251b74a42d27e025ad6acd83b
parentfc1eb0cd088e77c9c804610271bf8474d0a28d31 (diff)
downloadaports-4ab842ad052c58b72dccb2f8ad90bec4831327cc.tar.bz2
aports-4ab842ad052c58b72dccb2f8ad90bec4831327cc.tar.xz
main/perl-date-extract: add missing dependencies and modernize
It needs perl-module-install to build and perl-file-sharedir to run tests.
-rw-r--r--main/perl-date-extract/APKBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/main/perl-date-extract/APKBUILD b/main/perl-date-extract/APKBUILD
index 1bb29d50ef..47de6db40b 100644
--- a/main/perl-date-extract/APKBUILD
+++ b/main/perl-date-extract/APKBUILD
@@ -4,38 +4,42 @@
pkgname=perl-date-extract
_pkgreal=Date-Extract
pkgver=0.06
-pkgrel=0
-pkgdesc="extract probable dates from strings"
+pkgrel=1
+pkgdesc="Extract probable dates from strings"
url="http://search.cpan.org/dist/Date-Extract/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-datetime-format-natural perl-class-data-inheritable perl-test-mocktime"
cpanmakedepends=" "
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev perl-module-install $cpanmakedepends"
+checkdepends="perl-file-sharedir"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ 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="21fd316d2b6b0a6ab40f381f9e978cdc Date-Extract-0.06.tar.gz"
-sha256sums="bc7658d5c50c3525ec0efcb55236a5de2d5d4fc06fc147fa3929c8f0953cda2b Date-Extract-0.06.tar.gz"
sha512sums="f50bb1e968eab9a5ee5bd1383af1599aabc7af9f9c375e3d366857f1cbf6a6912e8eff99eece2096b09a475c9eb671eeaeb8e4b76c0d865cb452ce8b0a85c448 Date-Extract-0.06.tar.gz"