aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dbix-datasource/APKBUILD
blob: 1da41e429db1e6c1ac38ac673100183abc50c7f3 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-dbix-datasource
_pkgreal=DBIx-DataSource
pkgver=0.02
pkgrel=2
pkgdesc="Database-independant create and drop functions"
url="https://metacpan.org/release/DBIx-DataSource"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-dbi"
depends="$cpandepends"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IV/IVAN/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	default_prepare

	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

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

sha512sums="03a177d749d92852fc106085202ac80bcf53744012961fe789e29793eb500cae3705787e720ba8f06eca6c84b2f3388c7f24a2aa5420962ac61d5be8a7edbbcc  DBIx-DataSource-0.02.tar.gz"