aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sql-translator/APKBUILD
blob: 87870b142fc5689ca3490654fc5ece552ccf51ee (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
# 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.62
pkgrel=0
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"
depends="perl 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"
makedepends="perl-dev perl-xml-writer perl-test-exception perl-test-differences perl-json perl-module-install"
checkdepends="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"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IL/ILMARI/$_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="80096bf42cff406b896d96fd4374cb69c4bbe6ce037d58bb520d5c8ac31a15454772217730fac4249960cd81ac02ff9b5419b8dc80fd0a0901802e525ff863c8  SQL-Translator-1.62.tar.gz"