mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	https://metacpan.org/release/DateTime-TimeZone-Alias/ Create aliases for DateTime timezones
		
			
				
	
	
		
			45 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Automatically generated by apkbuild-cpan, template 4
 | |
| # Contributor: 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
 | |
| "
 |