aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dbicx-sugar/APKBUILD
blob: c190d13cefd852de4e612ac2bc5dd9db88d51f8a (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
45
46
47
48
# 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=0
pkgdesc="Just some syntax sugar for DBIx::Class"
url="http://search.cpan.org/dist/DBICx-Sugar/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-sql-translator perl-dbix-class"
cpanmakedepends=""
cpancheckdepends="perl-dbi perl-dbix-class perl-test-modern perl-test-requires"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends 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

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

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

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

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

sha512sums="6220362dfec558ac8053d3ff097fd09fdec7b7309e441d723c6f79764a17ffd23057d10516c4d2a5a59ebf8c77e81fa50d5f59e7c47807ad658b83a61c1187fb  DBICx-Sugar-0.0200.tar.gz"