# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-sql-abstract #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=SQL-Abstract pkgver=2.000001 pkgrel=2 pkgdesc="Generate SQL from Perl data structures" url="https://metacpan.org/release/SQL-Abstract/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-moo perl-mro-compat perl-sub-quote perl-test-deep perl-hash-merge" checkdepends="perl-test-exception perl-test-warn perl-data-dumper-concise perl-clone-choose" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/M/MS/MSTROUT/SQL-Abstract-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="a4cae42a261b64ba7c44bf6cc196f135ab32e847352572aafccee04dfdd5fe83d8b7654702acd90908cd0e90f6730cfc4fcfa8ffa81d52de7a18e38a2d6ea5d8 SQL-Abstract-2.000001.tar.gz"