aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dbix-class-candy/APKBUILD
blob: c3406b6097e7aa9d3347bb5e168a6318840892ff (plain) (blame)
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-dbix-class-candy
_pkgreal=DBIx-Class-Candy
pkgver=0.005003
pkgrel=3
pkgdesc="Sugar for your favorite ORM, DBIx::Class"
url="https://metacpan.org/release/DBIx-Class-Candy"
arch="noarch !armv7"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-sub-exporter perl-string-camelcase perl-mro-compat
	perl-namespace-clean perl-dbix-class perl-lingua-en-inflect perl-clone-choose"
cpancheckdepends="perl-test-deep perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FR/FREW/$_pkgreal-$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="59abea1913bfe5db91f8f98e1d94efa3007a5f60815d49485ad4570b59f554abc723b2e57b81f66e8fdd66e30645b7cd5d875a58165f3109b5107fef2be38a3b  DBIx-Class-Candy-0.005003.tar.gz"