# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
setvar pkgname = 'perl-sql-abstract-limit'
setvar _pkgreal = 'SQL-Abstract-Limit'
setvar pkgver = '0.141'
setvar pkgrel = '0'
setvar pkgdesc = ""unknown""
setvar url = ""http://search.cpan.org/dist/SQL-Abstract-Limit/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = ""perl-test-exception perl-sql-abstract perl-dbi perl-test-deep""
setvar cpanmakedepends = """"
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/D/DA/DAVEBAIRD/$_pkgreal-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	cd $_builddir
	perl Build.PL installdirs=vendor || return 1
}

proc build {
	cd $_builddir
		export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})
	./Build && ./Build test
}

proc package {
	cd $_builddir
	./Build install destdir="$pkgdir" || return 1
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar md5sums = ""d8dde39b1d7910ddf5457108c02be552  SQL-Abstract-Limit-0.141.tar.gz""