summaryrefslogtreecommitdiffstats
path: root/main/perl-dbix-searchbuilder/APKBUILD
blob: ab6d433bd353629e106ce3816e8f01c94f139d51 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbix-searchbuilder
_pkgreal=DBIx-SearchBuilder
pkgver=1.65
pkgrel=0
pkgdesc="Encapsulate SQL queries and rows in simple perl objects"
url="http://search.cpan.org/dist/DBIx-SearchBuilder/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-class-returnvalue perl-dbi perl-cache-simple-timedexpiry perl-class-accessor perl-clone perl-want perl-dbix-dbschema"
cpanmakedepends="perl-dbd-sqlite   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TS/TSIBLEY/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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

md5sums="a57146be76424d7aa8279f45a234fe5c  DBIx-SearchBuilder-1.65.tar.gz"
sha256sums="4b91265f6543031a9a267e10d5c7bc6926f100d19ac1edae36793227419ae349  DBIx-SearchBuilder-1.65.tar.gz"
sha512sums="37abd5a0664a5b0ed08a1172f98545480682493766045797757ba551d18dba23537749fdc6647b47c5f5a337c80b7fa153f76e017c28b653fb8da10a1154b3ce  DBIx-SearchBuilder-1.65.tar.gz"