aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dbicx-sugar/APKBUILD
blob: 6a0f8f08b068ff635497df865e25654a9776280b (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
# 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-dbicx-sugar
_pkgreal=DBICx-Sugar
pkgver=0.0200
pkgrel=1
pkgdesc="Just some syntax sugar for DBIx::Class"
url="https://metacpan.org/release/DBICx-Sugar"
arch="noarch !armv7" # tests fails on armv7
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-sql-translator perl-dbix-class"
cpancheckdepends="perl-dbi perl-test-modern perl-test-requires"
depends="$cpandepends"
makedepends="perl-dev perl-dbd-sqlite"
checkdepends="$cpancheckdepends perl-moose"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IR/IRONCAMEL/$_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 -I. 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="6220362dfec558ac8053d3ff097fd09fdec7b7309e441d723c6f79764a17ffd23057d10516c4d2a5a59ebf8c77e81fa50d5f59e7c47807ad658b83a61c1187fb  DBICx-Sugar-0.0200.tar.gz"