aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sql-translator/APKBUILD
blob: bce08cf532f7a63a5d7b7a8669372349af9ad6f1 (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
40
41
42
43
44
45
46
47
48
49
# 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=0.11024
pkgrel=0
pkgdesc="SQL DDL transformations and more"
url="http://search.cpan.org/dist/SQL-Translator/"
arch="noarch"
license="GPL PerlArtistic"
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"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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

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

sha512sums="ab6769591d7a586300367de96f8d41c928d0b33c2936246d7d8b9be9735207d1b0e5332a8a6aa9c6125f26161123588812b0c7016aca7da1a9ccbc000960fe70  SQL-Translator-0.11024.tar.gz"