mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-datetime-timezone-alias
|
|
pkgver=0.06
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=DateTime-TimeZone-Alias
|
|
pkgdesc="Create aliases for DateTime timezones"
|
|
url="https://metacpan.org/release/DateTime-TimeZone-Alias/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl perl-datetime perl-datetime-timezone"
|
|
makedepends="perl-module-build"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/J/JH/JHOBLITT/DateTime-TimeZone-Alias-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
perl Build.PL \
|
|
--installdirs=vendor \
|
|
--create_packlist=0
|
|
./Build
|
|
}
|
|
|
|
check() {
|
|
TZ=UTC ./Build test
|
|
}
|
|
|
|
package() {
|
|
./Build install --destdir="$pkgdir"
|
|
}
|
|
|
|
doc() {
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
default_doc
|
|
}
|
|
|
|
sha512sums="
|
|
eec339b2819e002cce4d52d4dee5a07fcb653bd738d94a359be3182d0c2b846b087057491a8aa5912ebe29cd80a19b42f275869c1ba24236edb47e81ccd9e38c DateTime-TimeZone-Alias-0.06.tar.gz
|
|
"
|