aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sql-translator/APKBUILD
blob: c26309343da460a616310730ccb1801eecc2b457 (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.11021
pkgrel=0
pkgdesc="Perl module for SQL-Translator"
url="http://search.cpan.org/dist/SQL-Translator/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-yaml perl-dbi perl-moo perl-xml-writer perl-list-moreutils
	perl-lwp-useragent-determined perl-test-exception perl-try-tiny 
	perl-parse-recdescent perl-test-differences perl-extutils-depends 
	perl-package-variant perl-file-sharedir perl-carp-clan perl-xml-libxml
	perl-dbd-sqlite perl-dbd-pg perl-template-toolkit perl-cgi perl-graph 
	perl-gd perl-spreadsheet-parseexcel perl-test-postgresql perl-test-pod perl-json"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
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"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 \
	PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
	PERL_MB_OPT="--installdirs vendor" \
	perl Makefile.PL
}

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

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

md5sums="7ef7dd297efd22fec3bc39e0bd03c50d  SQL-Translator-0.11021.tar.gz"
sha256sums="64cb38a9f78367bc115359a999003bbeb3c32cc75bba8306ec1a938fc441bfd1  SQL-Translator-0.11021.tar.gz"
sha512sums="d8bd12932d522ff6feb6821e7fbe95e804861c1d07035185b05e5a151f4fd4ddec233fb43637700ba32aa3e252df5590281db9d38b553a791e9d4bf15f68d5f7  SQL-Translator-0.11021.tar.gz"