aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-date-extract/APKBUILD
blob: 1bb29d50ef469a4ee15e594ebf67065e28209420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-date-extract
_pkgreal=Date-Extract
pkgver=0.06
pkgrel=0
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"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	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"