summaryrefslogtreecommitdiffstats
path: root/main/perl-date-extract/APKBUILD
blob: e32c1ce7ffd42775d99913d8488b52b95872efdf (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.04
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/S/SA/SARTAK/$_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="da567c4c45ea1456eee6f1d05b9f9f06  Date-Extract-0.04.tar.gz"
sha256sums="7124d9e8d745544080f612a42d8cf6b3a27eda0f4ec607d25d255ddaadb1957a  Date-Extract-0.04.tar.gz"
sha512sums="abe0221494e9ca1740ae1663adb44b673694d7616e8f989e05c34828a633cda4abd8df2bdfb47832423028d5ee67cd0d38e7b6b149b2737a8e865f1745dadb85  Date-Extract-0.04.tar.gz"