# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-dbicx-sugar _pkgreal=DBICx-Sugar pkgver=0.0200 pkgrel=0 pkgdesc="Just some syntax sugar for DBIx::Class" url="http://search.cpan.org/dist/DBICx-Sugar/" arch="noarch !armv7" # tests fails on armv7 license="GPL PerlArtistic" cpandepends="perl-sql-translator perl-dbix-class" cpanmakedepends="" cpancheckdepends="perl-dbi perl-dbix-class perl-test-modern perl-test-requires" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends perl-dbd-sqlite" checkdepends="$cpancheckdepends perl-moose" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/I/IR/IRONCAMEL/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="6220362dfec558ac8053d3ff097fd09fdec7b7309e441d723c6f79764a17ffd23057d10516c4d2a5a59ebf8c77e81fa50d5f59e7c47807ad658b83a61c1187fb DBICx-Sugar-0.0200.tar.gz"