# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'perl-test-longstring'
setvar pkgver = '0.15'
setvar pkgrel = '0'
setvar pkgdesc = ""Test::LongString perl module""
setvar url = ""http://search.cpan.org/dist/Test-LongString/""
setvar arch = ""noarch""
setvar license = ""GPLv2 or Artistic""
setvar depends = ""perl""
setvar makedepends = ""perl-dev""
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Test-LongString-$pkgver.tar.gz""

setvar _builddir = ""$srcdir"/Test-LongString-$pkgver"
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
}

proc build {
	cd $_builddir'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}

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

setvar sha512sums = ""d50bcba177280ff6da17720bde03dce0fe2b034aa7eeaa8825ccf983cbb8e60ee8f18179e47cfd43db1cac217bf30c38d224fb3557fb76ab3b58f573fd1ef529  Test-LongString-0.15.tar.gz""