summaryrefslogtreecommitdiff
path: root/user/perl-posix-strftime-compiler
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-posix-strftime-compiler')
-rw-r--r--user/perl-posix-strftime-compiler/APKBUILD26
-rw-r--r--user/perl-posix-strftime-compiler/change-timezone-name.patch12
2 files changed, 26 insertions, 12 deletions
diff --git a/user/perl-posix-strftime-compiler/APKBUILD b/user/perl-posix-strftime-compiler/APKBUILD
index 55886e7b0..17dac2c8f 100644
--- a/user/perl-posix-strftime-compiler/APKBUILD
+++ b/user/perl-posix-strftime-compiler/APKBUILD
@@ -1,34 +1,36 @@
# Contributor: A. Wilcox <awilfox@adelielinux.org>
-# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-posix-strftime-compiler
-_pkgname=POSIX-strftime-Compiler
-pkgver=0.42
+_pkgreal=POSIX-strftime-Compiler
+_author=KAZEBURO
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=0.46
pkgrel=0
pkgdesc="Perl strftime compiler"
url="https://metacpan.org/release/POSIX-strftime-Compiler"
arch="noarch"
-license="Artistic-1.0-Perl OR GPL-2.0-only"
-depends=""
-makedepends="perl-dev perl-module-build"
+license="Artistic-1.0-Perl OR GPL-1.0+"
+depends="perl"
+makedepends="perl-dev perl-module-build-tiny"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/POSIX-strftime-Compiler-$pkgver.tar.gz"
-builddir="$srcdir/POSIX-strftime-Compiler-$pkgver"
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz
+ change-timezone-name.patch"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- cd "$builddir"
perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs=vendor
./Build
}
check() {
- cd "$builddir"
./Build test
}
package() {
- cd "$builddir"
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="0c07f1b8589b067533c65a023dd634a29640cb8992aae8047aa1063affe6b30b95930479829982a30a13b87bc7c9ebf82ca4837726bd29658d85d718164e3c76 POSIX-strftime-Compiler-0.42.tar.gz"
+sha512sums="cee80a7b2f6b79dbb706898b713a4bb05bc57ecb3ef6c1644bce3682cc35d584c528aced6cd71b926e2fe549c95644ad59ecf780ba064adbb3bc9c54c8d4c459 POSIX-strftime-Compiler-0.46.tar.gz
+372ca8d3b8dfe35cbb6f67023341e59d6bca558d6a8bf8f02e79fb1f44c8d42a7c798b82e3e8732ebe7a46588912f6a533018bd4256419cd32a1257f11f5b467 change-timezone-name.patch"
diff --git a/user/perl-posix-strftime-compiler/change-timezone-name.patch b/user/perl-posix-strftime-compiler/change-timezone-name.patch
new file mode 100644
index 000000000..5ef5598b3
--- /dev/null
+++ b/user/perl-posix-strftime-compiler/change-timezone-name.patch
@@ -0,0 +1,12 @@
+diff -ru a/t/02_timezone.t b/t/02_timezone.t
+--- a/t/02_timezone.t 2021-04-03 11:56:22.696118176 -0300
++++ b/t/02_timezone.t 2021-04-03 11:57:25.279713829 -0300
+@@ -8,7 +8,7 @@
+ my $inc = join ' ', map { "-I\"$_\"" } @INC;
+ my $dir = dirname(__FILE__);
+
+-$ENV{TEST_TZ} = 'CET-1CEST';
++$ENV{TEST_TZ} = 'Europe/Brussels';
+
+ eval {
+ my $d = `"$^X" $inc $dir/02_timezone.pl %z 0 0 0 1 7 112`;