2019-05-11 07:12:57 +00:00

36 lines
884 B
Plaintext

# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-clone
_pkgname=Clone
pkgver=0.41
pkgrel=2
pkgdesc="Clone perl module"
url="http://search.cpan.org/dist/Clone/"
arch="all"
license="GPL-2.0 or Artistic"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GA/GARU/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="fa370fbede205449687b00a255f71295b2056c7897a343758564f80810d2534b8a8eff248f3adf8e96e1a7eded22a2237edb22fb610d0cd84d2fab1352b40dcb Clone-0.41.tar.gz"