mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 22:14:28 +02:00
34 lines
1,021 B
Text
34 lines
1,021 B
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=perl-ppix-utils
|
|
pkgver=0.004
|
|
pkgrel=0
|
|
pkgdesc="Utility functions for traversing PPI documents"
|
|
url="https://metacpan.org/pod/PPIx::Utils"
|
|
arch="noarch"
|
|
license="GPL-1.0-only OR Artistic-1.0-Perl"
|
|
depends="perl-b-keywords perl-ppi"
|
|
makedepends="perl-dev"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/D/DB/DBOOK/PPIx-Utils-$pkgver.tar.gz"
|
|
builddir="$srcdir/PPIx-Utils-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
}
|
|
|
|
sha512sums="
|
|
2245df7aff9b23dd478eb8d0242428e2f02a29cccc17217f141213745cc9c112b14ea047f7200bd7bcdd05260f5325981eb45cfc4c93f552fbc1ae25d5ddc158 PPIx-Utils-0.004.tar.gz
|
|
"
|