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

Evangelos Foutras foutrelis at archlinux.org
Sat May 25 11:58:26 UTC 2019


    Date: Saturday, May 25, 2019 @ 11:58:26
  Author: foutrelis
Revision: 470570

archrelease: copy trunk to community-staging-x86_64

Added:
  perl-lchown/repos/community-staging-x86_64/
  perl-lchown/repos/community-staging-x86_64/PKGBUILD
    (from rev 470569, perl-lchown/trunk/PKGBUILD)

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

Copied: perl-lchown/repos/community-staging-x86_64/PKGBUILD (from rev 470569, perl-lchown/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-25 11:58:26 UTC (rev 470570)
@@ -0,0 +1,38 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+pkgname=perl-lchown
+pkgver=1.01
+pkgrel=10
+pkgdesc="use the lchown(2) system call from Perl"
+arch=(x86_64)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+depends=('perl')
+makedepends=('perl-module-build')
+url=https://metacpan.org/release/Lchown
+source=("http://search.cpan.org/CPAN/authors/id/N/NC/NCLEATON/Lchown-${pkgver}.tar.gz")
+md5sums=('e3db31be650437eb5d9bfc4da6252ee3')
+
+build() {
+    export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
+      PERL_AUTOINSTALL=--skipdeps                            \
+      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'"     \
+      PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
+      MODULEBUILDRC=/dev/null
+
+    cd "${srcdir}/Lchown-${pkgver}"
+    /usr/bin/perl Build.PL
+    ./Build
+}
+
+check() {
+    export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    cd "${srcdir}/Lchown-${pkgver}"
+    ./Build test
+}
+
+package() {
+    cd "${srcdir}/Lchown-${pkgver}"
+    ./Build install
+    find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}


More information about the arch-commits mailing list