[arch-commits] Commit in perl-lchown/repos (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Aug 24 13:04:03 UTC 2017
Date: Thursday, August 24, 2017 @ 13:04:02
Author: foutrelis
Revision: 253210
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
perl-lchown/repos/community-staging-i686/
perl-lchown/repos/community-staging-i686/PKGBUILD
(from rev 253209, perl-lchown/trunk/PKGBUILD)
perl-lchown/repos/community-staging-x86_64/
perl-lchown/repos/community-staging-x86_64/PKGBUILD
(from rev 253209, perl-lchown/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
Copied: perl-lchown/repos/community-staging-i686/PKGBUILD (from rev 253209, perl-lchown/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-24 13:04:02 UTC (rev 253210)
@@ -0,0 +1,45 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+pkgname=perl-lchown
+pkgver=1.01
+pkgrel=7
+pkgdesc="use the lchown(2) system call from Perl"
+arch=(i686 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
+# 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-lchown/repos/community-staging-x86_64/PKGBUILD (from rev 253209, perl-lchown/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-24 13:04:02 UTC (rev 253210)
@@ -0,0 +1,45 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+pkgname=perl-lchown
+pkgver=1.01
+pkgrel=7
+pkgdesc="use the lchown(2) system call from Perl"
+arch=(i686 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
+# 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