Commit ba4a729f authored by Roberto Oliveira's avatar Roberto Oliveira

testing/perl-specio: modernize and add check

parent fc91b90c
......@@ -3,27 +3,31 @@
pkgname=perl-specio
_pkgname=Specio
pkgver=0.36
pkgrel=1
pkgrel=2
pkgdesc="Type constraints and coercions for Perl"
url="https://github.com/houseabsolute/Specio"
arch="all"
arch="noarch"
license="Artistic"
depends="perl"
makedepends=""
install=""
checkdepends="perl-test-fatal perl-test-needs perl-eval-closure perl-mro-compat perl-role-tiny perl-devel-stacktrace perl-module-runtime perl-moo"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/houseabsolute/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment