mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 14:17:13 +08:00
41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgname=perl-class-inspector
|
|
pkgver=1.28
|
|
pkgrel=1
|
|
pkgdesc="Get information about a class and its structure"
|
|
arch=(any)
|
|
license=(PerlArtistic GPL)
|
|
options=(!emptydirs)
|
|
depends=('perl')
|
|
url=http://search.cpan.org/dist/Class-Inspector
|
|
source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Class-Inspector-${pkgver}.tar.gz")
|
|
md5sums=('7ab3ca22d3147236dddfb58f2366ad22')
|
|
_distdir="${srcdir}/Class-Inspector-${pkgver}"
|
|
|
|
build() {
|
|
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
|
|
PERL_AUTOINSTALL=--skipdeps \
|
|
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
|
|
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
|
|
MODULEBUILDRC=/dev/null
|
|
|
|
cd "$_distdir"
|
|
/usr/bin/perl Makefile.PL
|
|
make
|
|
)
|
|
}
|
|
|
|
check() {
|
|
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
|
|
cd "$_distdir"
|
|
make test
|
|
)
|
|
}
|
|
|
|
package() {
|
|
cd "$_distdir"
|
|
make DESTDIR="$pkgdir" install
|
|
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
|
|
}
|