aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-clone/APKBUILD
blob: bc6f1e35dc76717425556b9eb224135da47a5065 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-clone
_pkgname=Clone
pkgver=0.43
pkgrel=0
pkgdesc="Clone perl module"
url="https://metacpan.org/release/Clone"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Clone-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="1a973fb5bde9e722e8d5bd11cf70005454f8e797687a145e5eb563629200cb6535168e458d312d57741ec4caf9c333dab588223e2368402aafd712b375846cd5  Clone-0.43.tar.gz"