Christoph Reiter f0230c32ea More cpan PURLs
2025-08-09 22:47:04 +02:00

41 lines
1002 B
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=IO-Stringy
pkgname=perl-${_realname}
provides=(perl-IO-stringy)
conflicts=(perl-IO-stringy)
replaces=(perl-IO-stringy)
pkgver=2.113
pkgrel=2
pkgdesc="I/O on in-core objects like strings/arrays"
arch=('any')
url="https://metacpan.org/release/IO-stringy"
msys2_references=(
'purl: pkg:cpan/CAPOEIRAB/IO-stringy'
)
groups=('perl-modules')
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/${_realname}-${pkgver}.tar.gz")
sha256sums=('51220fcaf9f66a639b69d251d7b0757bf4202f4f9debd45bdd341a6aca62fe4e')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "${srcdir}/${_realname}-${pkgver}"
make test
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
make install DESTDIR="${pkgdir}"
find ${pkgdir} -name '.packlist' -delete
find ${pkgdir} -name '*.pod' -delete
}