aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sql-translator/APKBUILD
blob: 79fe2766fa472168678a17b0df1755d0ea613a8b (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
46
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-sql-translator
_pkgreal=SQL-Translator
pkgver=1.61
pkgrel=1
pkgdesc="SQL DDL transformations and more"
url="https://metacpan.org/release/SQL-Translator/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-try-tiny perl-parse-recdescent perl-package-variant
	perl-carp-clan perl-sub-quote perl-dbi perl-file-sharedir perl-moo
	perl-list-moreutils perl-yaml"
cpanmakedepends="perl-xml-writer perl-test-exception perl-test-differences perl-json perl-module-install"
cpancheckdepends="perl-gd perl-spreadsheet-parseexcel perl-test-postgresql perl-html-parser
	perl-template-toolkit perl-graph perl-xml-libxml perl-cgi perl-dbd-sqlite perl-dbd-pg
	perl-file-sharedir-install"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MS/MSTROUT/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

check() {
	make test
}

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

sha512sums="412bec48b942d24f1abbcdfe2cd4c6a9a05f1eb97f6624f6509dfb1804eb3ee9c78ee092a03bf3c9e4d387ce729bf813d5bd9f602d6d9047ec46a14fe7738ab9  SQL-Translator-1.61.tar.gz"