mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-13 08:36:23 +02:00
testing/perl-template-plugin-number-format: modernize
This commit is contained in:
parent
e976125b1f
commit
eced679d83
@ -4,8 +4,8 @@
|
||||
pkgname=perl-template-plugin-number-format
|
||||
_pkgreal=Template-Plugin-Number-Format
|
||||
pkgver=1.06
|
||||
pkgrel=2
|
||||
pkgdesc="unknown"
|
||||
pkgrel=3
|
||||
pkgdesc="Plugin/filter interface to Number::Format"
|
||||
url="https://metacpan.org/release/Template-Plugin-Number-Format/"
|
||||
arch="noarch"
|
||||
license="GPL PerlArtistic"
|
||||
@ -14,30 +14,20 @@ subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/D/DA/DARREN/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare || return 1
|
||||
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
sha512sums="85ddc46618efc5a11a657f265ea63b09bd8df9f8e99122bcee5a22a23099ac8eb3c930d61382529b1e3c0b4dd663d32e30e77ac33b6d1b305475e740053001cb Template-Plugin-Number-Format-1.06.tar.gz"
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
85ddc46618efc5a11a657f265ea63b09bd8df9f8e99122bcee5a22a23099ac8eb3c930d61382529b1e3c0b4dd663d32e30e77ac33b6d1b305475e740053001cb Template-Plugin-Number-Format-1.06.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user