mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/perl-i18n-langinfo-wide: modernize
This commit is contained in:
parent
47d8ceed16
commit
33d455c690
@ -4,7 +4,7 @@
|
||||
pkgname=perl-i18n-langinfo-wide
|
||||
_pkgreal=I18N-Langinfo-Wide
|
||||
pkgver=9
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Langinfo and POSIX functions with wide-char strings."
|
||||
url="https://metacpan.org/release/I18N-Langinfo-Wide/"
|
||||
arch="noarch"
|
||||
@ -13,25 +13,23 @@ depends="perl"
|
||||
makedepends="perl-devel-stacktrace"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
|
||||
|
||||
_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
|
||||
}
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
make #&& make test
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
make DESTDIR="$pkgdir" install
|
||||
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
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user