mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 23:38:28 +08:00
32 lines
770 B
Bash
32 lines
770 B
Bash
# Platform ppackages for Chakra
|
|
|
|
pkgname='perl-test-script'
|
|
pkgver='1.07'
|
|
pkgrel='3'
|
|
pkgdesc="Basic cross-platform tests for scripts"
|
|
arch=('any')
|
|
url='http://search.cpan.org/dist/Test-Script'
|
|
license=('PerlArtistic' 'GPL')
|
|
depends=('perl' 'perl-ipc-run3>=0.034' 'perl-probe-perl>=0.01')
|
|
|
|
|
|
options=('!emptydirs')
|
|
|
|
source=('http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Test-Script-1.07.tar.gz')
|
|
md5sums=('f6b5baa6403cd24dac7f023e0ea22384')
|
|
|
|
build() {
|
|
DIST_DIR="${srcdir}/Test-Script-1.07"
|
|
export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1
|
|
{
|
|
cd "$DIST_DIR" &&
|
|
perl Makefile.PL INSTALLDIRS=vendor &&
|
|
make &&
|
|
make test &&
|
|
make DESTDIR="$pkgdir" install;
|
|
} || return 1;
|
|
|
|
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
|
|
}
|
|
|