* update perl-common-sense to 3.75-8

This commit is contained in:
Alexander Baldeck 2024-11-27 16:51:47 +01:00
parent 28c8df0cde
commit f56e8f815e
3 changed files with 28 additions and 4 deletions

View File

@ -1,7 +1,7 @@
pkgbase = perl-common-sense
pkgdesc = Implements some sane defaults for Perl programs
pkgver = 3.75
pkgrel = 7
pkgrel = 8
url = https://search.cpan.org/dist/common-sense
arch = any
license = PerlArtistic
@ -9,6 +9,8 @@ pkgbase = perl-common-sense
depends = perl
options = !emptydirs
source = https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-3.75.tar.gz
source = fix-man3pods.patch
sha512sums = cb6034d9ff721a4122e0215db8ad5279ec4b189c3364593d427d70a1e84a1583a0e1447e276aa9a4fcaeb2f9d47a465a5bc4c0f842c803d3ddf91755311f4af4
sha512sums = 4e8d0edd1156c07dcdf82160ad1c38b70c8b45aa8a7bb865fccb59dab39fbc0e2fe073074d1f08fe560145f94176cc6010fc48b3f9b06c4a04136ae396b8a9f4
pkgname = perl-common-sense

View File

@ -3,15 +3,25 @@
pkgname=perl-common-sense
pkgver=3.75
pkgrel=7
pkgrel=8
pkgdesc="Implements some sane defaults for Perl programs"
arch=(any)
url="https://search.cpan.org/dist/common-sense"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz")
sha512sums=('cb6034d9ff721a4122e0215db8ad5279ec4b189c3364593d427d70a1e84a1583a0e1447e276aa9a4fcaeb2f9d47a465a5bc4c0f842c803d3ddf91755311f4af4')
source=("https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz"
fix-man3pods.patch)
sha512sums=('cb6034d9ff721a4122e0215db8ad5279ec4b189c3364593d427d70a1e84a1583a0e1447e276aa9a4fcaeb2f9d47a465a5bc4c0f842c803d3ddf91755311f4af4'
'4e8d0edd1156c07dcdf82160ad1c38b70c8b45aa8a7bb865fccb59dab39fbc0e2fe073074d1f08fe560145f94176cc6010fc48b3f9b06c4a04136ae396b8a9f4')
prepare() {
cd common-sense-$pkgver
# Workaround for empty man page: the default generated Makefile processes
# both sense.pm and sense.pod to the same location, but sense.pm results in
# empty pod2man output.
patch -p1 -i ../fix-man3pods.patch
}
build() {
cd common-sense-$pkgver

View File

@ -0,0 +1,12 @@
diff --git a/Makefile.PL b/Makefile.PL
index bf6c023..fbf756f 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -13,5 +13,8 @@ WriteMakefile(
"sense.pod" => '$(INST_LIB)/common/sense.pod',
},
clean => { FILES => "sense.pm" },
+ MAN3PODS => {
+ 'sense.pod' => '$(INST_MAN3DIR)/common::sense.3pm',
+ },
);