[arch-commits] Commit in perl-locale-gettext/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue May 19 07:51:02 UTC 2020


    Date: Tuesday, May 19, 2020 @ 07:51:01
  Author: felixonmars
Revision: 386048

archrelease: copy trunk to staging-x86_64

Added:
  perl-locale-gettext/repos/staging-x86_64/
  perl-locale-gettext/repos/staging-x86_64/PKGBUILD
    (from rev 386046, perl-locale-gettext/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: perl-locale-gettext/repos/staging-x86_64/PKGBUILD (from rev 386046, perl-locale-gettext/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-19 07:51:01 UTC (rev 386048)
@@ -0,0 +1,39 @@
+# 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=9
+pkgdesc="Permits access from Perl to the gettext() family of functions"
+arch=('x86_64')
+license=('GPL' 'PerlArtistic')
+url="https://search.cpan.org/dist/${_realname}/"
+depends=('gettext' 'perl')
+options=(!emptydirs)
+source=("https://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
+}



More information about the arch-commits mailing list