aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-sql-abstract/APKBUILD
blob: 158f8105cecbca2b802eda1cb0622dbabc9b86e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-sql-abstract
_pkgreal=SQL-Abstract
pkgver=1.86
pkgrel=0
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"
cpandepends="perl-moo perl-hash-merge perl-mro-compat perl-sub-quote"
cpancheckdepends="perl-test-exception perl-test-warn perl-test-deep
	perl-clone-choose"
depends="$cpandepends"
makedepends="perl-dev"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IL/ILMARI/SQL-Abstract-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

sha512sums="248652656bebf9e3f3e2582880f78f4f8c6dd2a8e2546a750b33e9d95cd6da6d8a197d0be69b5e44a24e04c8e1262d4bf3085fa95405fa28eefc3b822a93fa42  SQL-Abstract-1.86.tar.gz"