testing/perl-i18n-langinfo-wide: modernize

This commit is contained in:
J0WI 2023-05-06 18:39:25 +02:00 committed by alice
parent 47d8ceed16
commit 33d455c690

View File

@ -4,7 +4,7 @@
pkgname=perl-i18n-langinfo-wide pkgname=perl-i18n-langinfo-wide
_pkgreal=I18N-Langinfo-Wide _pkgreal=I18N-Langinfo-Wide
pkgver=9 pkgver=9
pkgrel=2 pkgrel=3
pkgdesc="Langinfo and POSIX functions with wide-char strings." pkgdesc="Langinfo and POSIX functions with wide-char strings."
url="https://metacpan.org/release/I18N-Langinfo-Wide/" url="https://metacpan.org/release/I18N-Langinfo-Wide/"
arch="noarch" arch="noarch"
@ -13,25 +13,23 @@ depends="perl"
makedepends="perl-devel-stacktrace" makedepends="perl-devel-stacktrace"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz" source="https://cpan.metacpan.org/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() { build() {
cd "$_builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make #&& make test make
}
check() {
make test
} }
package() { package() {
cd "$_builddir" make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
sha512sums="4b3349e4096217e055092651522ee89d0ff949b235c977eede002ce604204ccb057b9a1b3293480bed36e9792e11cdabf5c15eecb280afe7228b5c7030044860 I18N-Langinfo-Wide-9.tar.gz" sha512sums="
4b3349e4096217e055092651522ee89d0ff949b235c977eede002ce604204ccb057b9a1b3293480bed36e9792e11cdabf5c15eecb280afe7228b5c7030044860 I18N-Langinfo-Wide-9.tar.gz
"