mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/perl-guard: modernize
This commit is contained in:
parent
d9227d2302
commit
15f090d179
@ -4,45 +4,30 @@
|
|||||||
pkgname=perl-guard
|
pkgname=perl-guard
|
||||||
_pkgreal=Guard
|
_pkgreal=Guard
|
||||||
pkgver=1.023
|
pkgver=1.023
|
||||||
pkgrel=6
|
pkgrel=7
|
||||||
pkgdesc="unknown"
|
pkgdesc="Perl module to cleanup blocks safely"
|
||||||
url="https://metacpan.org/release/Guard/"
|
url="https://metacpan.org/release/Guard/"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="GPL PerlArtistic"
|
license="GPL PerlArtistic"
|
||||||
cpandepends=""
|
makedepends="perl-dev"
|
||||||
cpanmakedepends=""
|
|
||||||
cpancheckdepends=""
|
|
||||||
depends="$cpandepends"
|
|
||||||
makedepends="perl-dev $cpanmakedepends"
|
|
||||||
checkdepends="$cpancheckdepends"
|
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/$_pkgreal-$pkgver.tar.gz"
|
source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/$_pkgreal-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
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() {
|
build() {
|
||||||
cd "$builddir"
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "$builddir"
|
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
|
||||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$builddir"
|
|
||||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
||||||
make test
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="a991d6f9ebfadffbcabaccc45d964c40c46c7212c6de089f0c496040e151236c59cc7dd7076464f0ef96936f2c4cd462fbedf8e729d522f1090682eda976676f Guard-1.023.tar.gz"
|
package() {
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
a991d6f9ebfadffbcabaccc45d964c40c46c7212c6de089f0c496040e151236c59cc7dd7076464f0ef96936f2c4cd462fbedf8e729d522f1090682eda976676f Guard-1.023.tar.gz
|
||||||
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user