[arch-commits] Commit in perl-locale-gettext/repos (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Aug 26 11:20:59 UTC 2017
Date: Saturday, August 26, 2017 @ 11:20:58
Author: foutrelis
Revision: 303804
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
perl-locale-gettext/repos/staging-i686/
perl-locale-gettext/repos/staging-i686/PKGBUILD
(from rev 303803, perl-locale-gettext/trunk/PKGBUILD)
perl-locale-gettext/repos/staging-x86_64/
perl-locale-gettext/repos/staging-x86_64/PKGBUILD
(from rev 303803, perl-locale-gettext/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+)
Copied: perl-locale-gettext/repos/staging-i686/PKGBUILD (from rev 303803, perl-locale-gettext/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2017-08-26 11:20:58 UTC (rev 303804)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Mark Rosenstand <mark at borkware.net>
+# Contributor: Paul Mattal <paul at archlinux.org>
+
+pkgname=perl-locale-gettext
+_realname=Locale-gettext
+pkgver=1.07
+pkgrel=5
+pkgdesc="Permits access from Perl to the gettext() family of functions"
+arch=('i686' 'x86_64')
+license=('GPL' 'PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('gettext' 'perl')
+options=(!emptydirs)
+source=("http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/${_realname}-${pkgver}.tar.gz")
+md5sums=('bc652758af65c24500f1d06a77415019')
+
+build() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+
+ # install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+
+ make test
+}
+
+package() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+ make install DESTDIR="${pkgdir}"
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name perllocal.pod -delete
+ find "${pkgdir}" -name .packlist -delete
+
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}
Copied: perl-locale-gettext/repos/staging-x86_64/PKGBUILD (from rev 303803, perl-locale-gettext/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-08-26 11:20:58 UTC (rev 303804)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Mark Rosenstand <mark at borkware.net>
+# Contributor: Paul Mattal <paul at archlinux.org>
+
+pkgname=perl-locale-gettext
+_realname=Locale-gettext
+pkgver=1.07
+pkgrel=5
+pkgdesc="Permits access from Perl to the gettext() family of functions"
+arch=('i686' 'x86_64')
+license=('GPL' 'PerlArtistic')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('gettext' 'perl')
+options=(!emptydirs)
+source=("http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/${_realname}-${pkgver}.tar.gz")
+md5sums=('bc652758af65c24500f1d06a77415019')
+
+build() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+
+ # install module in vendor directories.
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+
+ make test
+}
+
+package() {
+ cd "${srcdir}/${_realname}-${pkgver}"
+ make install DESTDIR="${pkgdir}"
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name perllocal.pod -delete
+ find "${pkgdir}" -name .packlist -delete
+
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}
More information about the arch-commits
mailing list