Commit 74ccecd6 authored by Francesco Colista's avatar Francesco Colista
Browse files

community/perl-type-tiny: new aport. In community because of per-test-postgresql dependency

parent c72176ef
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-type-tiny
_pkgreal=Type-Tiny
pkgver=1.000005
pkgrel=0
pkgdesc="tiny, yet Moo(se)-compatible type constraint"
url="http://search.cpan.org/dist/Type-Tiny/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-exporter-tiny"
cpanmakedepends=" perl-test-warnings"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="2914b0e6b35c35f657d426fba29b4520 Type-Tiny-1.000005.tar.gz"
sha256sums="42ed36c011825aa1e6995a4e8638621a1b2103a0970b15764ca3919368042365 Type-Tiny-1.000005.tar.gz"
sha512sums="5817ee937384cccbea71fa69f8c2202d721c648a18eedf089529fbb956b2d050b889606e69c8bc3e1d94fb6f638b6cac01394b5534f17a8be6cdf82d69b965b6 Type-Tiny-1.000005.tar.gz"
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