summaryrefslogtreecommitdiff
path: root/system/perl-clone/APKBUILD
blob: f2eb324b39cef9c160d8355ef29acb03199f3b8c (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
33
34
35
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-clone
_pkgreal=Clone
_author=GARU
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.46
pkgrel=0
pkgdesc="recursively copy Perl datatypes"
url="https://metacpan.org/pod/Clone"
arch="all"
license="GPL-1.0+ or Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-b-cow"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$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="f8bb1010364e94c7cc8bba25681cd9fd737ec2935a8be960ac53099359729fc679190a115dd082fccd239b35762dee2b3be3adbddce37e4ceae6fe934fbad545  Clone-0.46.tar.gz"