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

Felix Yan felixonmars at archlinux.org
Mon May 24 11:24:47 UTC 2021


    Date: Monday, May 24, 2021 @ 11:24:47
  Author: felixonmars
Revision: 944407

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 944404, perl-lchown/trunk/PKGBUILD)

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

Copied: perl-lchown/repos/community-staging-x86_64/PKGBUILD (from rev 944404, perl-lchown/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-24 11:24:47 UTC (rev 944407)
@@ -0,0 +1,38 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+pkgname=perl-lchown
+pkgver=1.01
+pkgrel=13
+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=("https://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