testing/perl-encode-newlines: new aport

This commit is contained in:
Duncan Bellamy 2023-04-08 07:31:26 +00:00 committed by alice
parent 942fec2ecf
commit 8becbb5e1d

View File

@ -0,0 +1,37 @@
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-encode-newlines
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Encode-Newlines
pkgver=0.05
pkgrel=0
pkgdesc="Normalize line ending sequences"
url="https://metacpan.org/release/Encode-Newlines/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Encode-Newlines-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
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="
d2de26a17998d84e032d29f561662cba8e708c68fcfd988a4917e7d15c025a4e0f12c8e475c503a65545bca5dee0fe325929049ac3e0de9bf08d4967416d8726 Encode-Newlines-0.05.tar.gz
"