aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 01:59:24 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 01:59:47 +0000
commit285d79b5083647a4d065c0df807aebd95ae73a7d (patch)
tree60f733e135e55b3d46adb53408cca4e162480d78 /testing
parent79b876b023c529120736a447dbc90e8712b494ea (diff)
downloadaports-285d79b5083647a4d065c0df807aebd95ae73a7d.tar.bz2
aports-285d79b5083647a4d065c0df807aebd95ae73a7d.tar.xz
testing/perl-libintl-perl: upgrade to 1.29 and modernize
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-libintl-perl/APKBUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/testing/perl-libintl-perl/APKBUILD b/testing/perl-libintl-perl/APKBUILD
index 9f3a5281e9..291649e2b6 100644
--- a/testing/perl-libintl-perl/APKBUILD
+++ b/testing/perl-libintl-perl/APKBUILD
@@ -3,39 +3,44 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-libintl-perl
_pkgreal=libintl-perl
-pkgver=1.26
+pkgver=1.29
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/libintl-perl/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GU/GUIDO/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="d355998f5f33a6f4202cd7ded7bf052a libintl-perl-1.26.tar.gz"
-sha256sums="3f28eaa9d824c2852cf96bb6aa98495d302a6b95302f3e0738fe9389f8053e50 libintl-perl-1.26.tar.gz"
-sha512sums="036c4687bc736df7098f56ee4fb19e76e56318ac271f8c9602dd30b7973efb5276f1124f5ec69cab767848707c7ba34399e7afa5d3d09cdd2f9c1e383046593d libintl-perl-1.26.tar.gz"
+sha512sums="fc3b3e526aa9f5fc9f69da4cbd6653c27fbc380f0139bc5e642c5299def533209cab0112702b1faa13a52b1392f028dbb943b09974bdbc09812f11dee0ccfc7f libintl-perl-1.29.tar.gz"