aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-class-dbi/APKBUILD
blob: 4962decf2caca80423552375c77305b1a2939575 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-class-dbi
_pkgreal=Class-DBI
pkgver=3.0.17
pkgrel=3
pkgdesc="Simple Database Abstraction"
url="https://metacpan.org/release/Class-DBI/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-universal-moniker perl-ima-dbi perl-clone 
perl-class-data-inheritable perl-class-accessor perl-class-trigger"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="perl-dbd-pg perl-dbd-sqlite perl-date-simple perl-test-pod"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TM/TMTM/$_pkgreal-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="006bc6ca754d24d9cb3791fa99128df597be1f96cb62c309a0f37f169e02e2baec6aa7e6395ddea8202df11488a9db52fa817d8fff7f925097769d70356d1fe7  Class-DBI-v3.0.17.tar.gz"