aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sql-translator/APKBUILD
blob: 472005745d2d871c4c68f39fce75cbd527666b7e (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
50
51
52
# 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.11021.01
_suff=${pkgver##*.}
_pkgver=${pkgver%.*}_$_suff
pkgrel=1
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"

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

prepare() {
	cd "$builddir"
	default_prepare || return 1
	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
}

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

sha512sums="f0b4feb417ff9f24b02406f0574ab4de1148baf8f6e8c18724d20878d3d682549f095700c43892c20ea505fef24908ffe484e4902305df377f001e3714e747f5  SQL-Translator-0.11021_01.tar.gz"