mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/perl-getopt-tabular: modernize
This commit is contained in:
parent
7ef5e3010a
commit
0bfc4e42f8
@ -4,7 +4,7 @@
|
||||
pkgname=perl-getopt-tabular
|
||||
_pkgreal=Getopt-Tabular
|
||||
pkgver=0.3
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Table-driven argument parsing for Perl 5"
|
||||
url="https://metacpan.org/release/Getopt-Tabular"
|
||||
arch="noarch"
|
||||
@ -14,16 +14,14 @@ subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/G/GW/GWARD/$_pkgreal-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
}
|
||||
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make && make test
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
@ -31,4 +29,6 @@ package() {
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
sha512sums="a289d4861538ae542f7549364573cadd740538f73862d89dd49eaf6bed6f787ba2848246add171aed6aef4d7d36411d00bef70b76885aa948ce0e7fc8801652b Getopt-Tabular-0.3.tar.gz"
|
||||
sha512sums="
|
||||
a289d4861538ae542f7549364573cadd740538f73862d89dd49eaf6bed6f787ba2848246add171aed6aef4d7d36411d00bef70b76885aa948ce0e7fc8801652b Getopt-Tabular-0.3.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user