diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-05 04:00:51 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-05 04:00:51 +0000 |
commit | 288ec987f24c20f3f8147b48a7a132ca873d673e (patch) | |
tree | 93f1c9f034c8b8c7fa6e378ea08aee307ecd8eff /community/perl-sql-translator | |
parent | 14e490aef970d4d4a02c5bce29a44611dba7b338 (diff) | |
download | aports-288ec987f24c20f3f8147b48a7a132ca873d673e.tar.bz2 aports-288ec987f24c20f3f8147b48a7a132ca873d673e.tar.xz |
community/perl-sql-translator: upgrade to 0.11022
Diffstat (limited to 'community/perl-sql-translator')
-rw-r--r-- | community/perl-sql-translator/APKBUILD | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/community/perl-sql-translator/APKBUILD b/community/perl-sql-translator/APKBUILD index 472005745d..835353d33b 100644 --- a/community/perl-sql-translator/APKBUILD +++ b/community/perl-sql-translator/APKBUILD @@ -3,10 +3,8 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-sql-translator _pkgreal=SQL-Translator -pkgver=0.11021.01 -_suff=${pkgver##*.} -_pkgver=${pkgver%.*}_$_suff -pkgrel=1 +pkgver=0.11022 +pkgrel=0 pkgdesc="SQL DDL transformations and more" url="http://search.cpan.org/dist/SQL-Translator/" arch="noarch" @@ -21,18 +19,12 @@ 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 -} +source="http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$builddir" - default_prepare || return 1 + default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor } @@ -43,10 +35,15 @@ build() { make } +check() { + cd "$builddir" + make test +} + package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="f0b4feb417ff9f24b02406f0574ab4de1148baf8f6e8c18724d20878d3d682549f095700c43892c20ea505fef24908ffe484e4902305df377f001e3714e747f5 SQL-Translator-0.11021_01.tar.gz" +sha512sums="8c3f1d44fa1de2509a204af0030d4c8bcb03364166395b399c31dc5b33f42812b441d81d022eb0a3e3832055789d796935e834a2529a7a1430a8f2d61cbf570e SQL-Translator-0.11022.tar.gz" |