aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-script/APKBUILD
blob: a6878ae00ee452054b5a0c533a751811f1aee975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-test-script
_pkgreal=Test-Script
pkgver=1.12
pkgrel=0
pkgdesc="Basic cross-platform tests for scripts"
url="http://search.cpan.org/dist/Test-Script/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-ipc-run3 perl-probe-perl perl-test-tester"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="e21bdeb91fa2bbb596a0c552f5fcc541  Test-Script-1.12.tar.gz"
sha256sums="193600bac1c79d612c4a36c8496c0192ed189ee0312d6c4dea58999c51ac9c4f  Test-Script-1.12.tar.gz"
sha512sums="224e97ce8a1dc2510fc526fbe80384f08a07399b23bb89f485af7568777af26fbc921ed00fb6c665a4d9c2e50414db9a41b88286ec8b3473abfec47853c20cb3  Test-Script-1.12.tar.gz"