# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs setglobal pkgname = 'perl-dbix-introspector' setglobal _pkgreal = 'DBIx-Introspector' setglobal pkgver = '0.001005' setglobal pkgrel = '0' setglobal pkgdesc = '"Detect what database you are connected to'" setglobal url = '"http://search.cpan.org/dist/DBIx-Introspector/'" setglobal arch = '"noarch'" setglobal license = '"GPL PerlArtistic'" setglobal cpandepends = '"perl-dbi perl-moo'" setglobal cpanmakedepends = ''"" setglobal cpancheckdepends = '"perl-dbd-sqlite perl-test-roo'" setglobal depends = $cpandepends setglobal makedepends = ""perl-dev $cpanmakedepends"" setglobal checkdepends = ""perl-test-fatal $cpancheckdepends"" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""http://search.cpan.org/CPAN/authors/id/F/FR/FREW/$_pkgreal-$pkgver.tar.gz"" setglobal builddir = ""$srcdir/$_pkgreal-$pkgver"" proc prepare { default_prepare || return 1 cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } proc build { cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] make } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } proc check { cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] make test } setglobal sha512sums = '"ab96cd189ab6a43a3479c2f62de7053310e04788f576a152f21d0425081aad8bc5202c84ff3d264adb7becd6715654719b9888063f623eb578e2a2f7f3e17eb9 DBIx-Introspector-0.001005.tar.gz'"