summaryrefslogtreecommitdiff
path: root/user/perl-timedate/APKBUILD
blob: 8dbb85e6d6b783ace5ceba4b2a6ce18f5a27f8a4 (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-timedate
_pkgreal=TimeDate
_author=GBARR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.30
pkgrel=0
pkgdesc="Date and time handling routines for Perl"
url="https://metacpan.org/release/TimeDate"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz
	y2020.patch
	"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="c6aa7d57fbe82260c7455f74f6dfda55f7c93d7a75914bafb9d09ebfb83b5f57f6bc1e332ab0764d7688d857eb022b0f5e92cf5b685d809c63cdfa93a8d2c221  TimeDate-2.30.tar.gz
864e1dc96015b072008687205c49b5b7ef7966ca167fca3c5d745f90dea0bf75cdc101ab314f4de06e7fd17a4401bdf367b2966b8a1e9dfaecf60e787f739ec9  y2020.patch"