aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-time-local/APKBUILD
blob: 6f7ae57be6fb3034922329453a5cd996206fe7fa (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
42
43
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-time-local
_pkgreal=Time-Local
pkgver=1.28
pkgrel=1
pkgdesc="Efficiently compute time from local and GMT time"
url="https://search.cpan.org/dist/Time-Local/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

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

doc() {
	default_doc
	replaces="perl-doc"
}
sha512sums="8e5e36f84bf9314e780687eaa1a48475ecc4c6cce4510b18d556f1d9ca9ec8b744ac45b4d7d1d9db9bb1a0f15886e8e4ac39aee0882d24fad5becab573b27b67  Time-Local-1.28.tar.gz"