aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dbix-class/APKBUILD
blob: cc68ecbb937e87463a38d5d39176024fb11c7ee6 (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
45
46
47
48
49
50
51
52
53
# 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
_pkgreal=DBIx-Class
pkgver=0.082842
pkgrel=0
pkgdesc="Extensible and flexible object <-> relational mapper."
url="https://metacpan.org/release/DBIx-Class"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-path-class perl-namespace-clean perl-context-preserve perl-try-tiny
	perl-devel-globaldestruction perl-mro-compat perl-sql-abstract-classic perl-class-c3-componentised
	perl-sub-name perl-class-inspector perl-config-any perl-module-find perl-dbi
	perl-data-dumper-concise perl-class-accessor-grouped perl-scope-guard perl-moo
	perl-hash-merge perl-data-page
	"
makedepends="
	perl-module-install perl-package-stash perl-test-exception perl-test-deep perl-dbd-sqlite
	perl-test-warn
	"
checkdepends="perl-clone-choose"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/$_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="
c8d7149536d5c4ebbfc866b0c143454ead37fda5ddb8fa43dfe2d56c2169be0fd8a46ec3b6c7cd22cb1c93504056d5803b5250ac151507ef4205fe53495e8f18  DBIx-Class-0.082842.tar.gz
"