From 2b05e061e27cc2e1023573accd6b513f632b3f30 Mon Sep 17 00:00:00 2001
From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org>
Date: Sun, 18 Aug 2024 16:20:04 +0000
Subject: [PATCH] main/perl-clone: upgrade to 0.47

also, recreate with apkbuild-cpan template 4

https://metacpan.org/release/ATOOMIC/Clone-0.47/diff/GARU/Clone-0.46
---
 main/perl-clone/APKBUILD | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/main/perl-clone/APKBUILD b/main/perl-clone/APKBUILD
index df9054df3ac4..6afe26e15b20 100644
--- a/main/perl-clone/APKBUILD
+++ b/main/perl-clone/APKBUILD
@@ -1,35 +1,40 @@
+# Automatically generated by apkbuild-cpan, template 4
 # Contributor: Natanael Copa <ncopa@alpinelinux.org>
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=perl-clone
+pkgver=0.47
+pkgrel=0
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
 _pkgreal=Clone
-pkgver=0.46
-pkgrel=3
-pkgdesc="Clone perl module"
-url="https://metacpan.org/release/Clone"
+pkgdesc="Recursively copy Perl datatypes"
+url="https://metacpan.org/release/Clone/"
 arch="all"
 license="GPL-1.0-or-later OR Artistic-1.0-Perl"
 depends="perl"
 makedepends="perl-dev"
 checkdepends="perl-b-cow"
 subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/G/GA/GARU/Clone-$pkgver.tar.gz"
-
+source="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Clone-$pkgver.tar.gz"
 builddir="$srcdir/$_pkgreal-$pkgver"
 
 build() {
-	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+		INSTALLDIRS=vendor \
+		NO_PACKLIST=1 \
+		NO_PERLLOCAL=1
 	make
 }
 
 check() {
+	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
 	make test
 }
 
 package() {
 	make DESTDIR="$pkgdir" install
-	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
 }
 
 sha512sums="
-f8bb1010364e94c7cc8bba25681cd9fd737ec2935a8be960ac53099359729fc679190a115dd082fccd239b35762dee2b3be3adbddce37e4ceae6fe934fbad545  Clone-0.46.tar.gz
+dc5ebde05ecafbd3089cdb978083584ad77e1e4dce2e95e466b1cc8357092422a36489d2e9cda99c8009a8d7a0bd18466e3c21b580b95c29fb9ad843911bb9fe  Clone-0.47.tar.gz
 "
-- 
GitLab