perl-Clone: add package, for perl-Http-Message

This commit is contained in:
Biswapriyo Nath
2020-07-27 10:27:26 +05:30
parent fab8ae57ae
commit 901f97d076

36
perl-Clone/PKGBUILD Normal file
View File

@@ -0,0 +1,36 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=Clone
pkgname=perl-${_realname}
pkgver=0.45
pkgrel=1
pkgdesc='Recursive copy of nested objects.'
arch=('any')
url='https://search.cpan.org/~RDF/Clone'
groups=('perl-modules')
license=('GPL' 'PerlArtistic')
depends=('perl')
makedepends=('libcrypt-devel')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/A/AT/ATOOMIC/${_realname}-${pkgver}.tar.gz")
sha512sums=('4d91580fb60876cca7670411748e42e6af0eaba8fac25d60e7a50685ae7b1e697e12c8a2835693e3e4abf3c13c060a2740344eb804ec26ed274b895f599340af')
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor" \
PERL_MB_OPT="--installdirs vendor" \
MODULEBUILDRC=/dev/null
cd ${_realname}-${pkgver}
/usr/bin/perl Makefile.PL
make
)
}
package() {
cd ${_realname}-${pkgver}
make DESTDIR="$pkgdir" install
find "$pkgdir" -name '.packlist' -delete
find "$pkgdir" -name '*.pod' -delete
}