30 lines
969 B
Bash
30 lines
969 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-clone
|
|
pkgver=0.45
|
|
pkgrel=1
|
|
pkgdesc='Recursive copy of nested objects.'
|
|
arch=('i686' 'x86_64')
|
|
url='https://search.cpan.org/~RDF/Clone'
|
|
license=('GPL-1')
|
|
depends=('perl')
|
|
options=('!emptydirs')
|
|
source=("https://search.cpan.org/CPAN/authors/id/A/AT/ATOOMIC/Clone-$pkgver.tar.gz"
|
|
"LICENSE")
|
|
sha512sums=('4d91580fb60876cca7670411748e42e6af0eaba8fac25d60e7a50685ae7b1e697e12c8a2835693e3e4abf3c13c060a2740344eb804ec26ed274b895f599340af'
|
|
'681147cef480fdd05b2702ed8bc3291c47c9cc9b7e6eada74d509c9eaede94f109a7a3692db58d6fe3f098e7013cfc7013b339ee43becedb0232c08cc797cce0')
|
|
|
|
build() {
|
|
cd Clone-$pkgver
|
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd Clone-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
find "$pkgdir" -name '.packlist' -delete
|
|
find "$pkgdir" -name '*.pod' -delete
|
|
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
|
}
|