diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 09:35:01 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 11:24:37 +0000 |
commit | 31ff52ba2bcab3cb17a4dd3f1e0f1510759b4f00 (patch) | |
tree | bdc696096921a998acd940d519d0153d74dfd574 /community/perl-sql-translator | |
parent | 64ca2381554f60dfe5cf88f8a08ce074cda33dff (diff) | |
download | aports-31ff52ba2bcab3cb17a4dd3f1e0f1510759b4f00.tar.bz2 aports-31ff52ba2bcab3cb17a4dd3f1e0f1510759b4f00.tar.xz |
community/perl-sql-translator: moved from testing
Diffstat (limited to 'community/perl-sql-translator')
-rw-r--r-- | community/perl-sql-translator/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/perl-sql-translator/APKBUILD b/community/perl-sql-translator/APKBUILD new file mode 100644 index 0000000000..c26309343d --- /dev/null +++ b/community/perl-sql-translator/APKBUILD @@ -0,0 +1,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" |