aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-dbix-dbschema/APKBUILD
blob: 60a3b389a1701ca030ff1dee42faa832c03d3bf9 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-dbix-dbschema
pkgver=0.45
pkgrel=1
pkgdesc="DBIx::DBSchema perl module"
url="https://metacpan.org/release/DBIx-DBSchema/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-dbi"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IV/IVAN/DBIx-DBSchema-$pkgver.tar.gz"
builddir="$srcdir"/DBIx-DBSchema-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

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

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

sha512sums="808d83898b1265b6dcdd5e9727fb0fed50935dba893cae40ead5d0d344edcf6f342a3ed2e7ad63efbb94e0cc07c0615153c29d14132c13ac9b071d77a9069770  DBIx-DBSchema-0.45.tar.gz"