summaryrefslogtreecommitdiff
path: root/user/perl-hash-defhash/APKBUILD
blob: d1ef8a2079a55771b180aa0c8b328216cf1fc593 (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
# Contributor: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-hash-defhash
_pkgreal=Hash-DefHash
_author=PERLANCAR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.071
pkgrel=0
pkgdesc="Perl module for providing an OO interface to hashes"
url="https://metacpan.org/pod/Hash::DefHash"
arch="noarch"
license="Artistic-2.0 OR GPL-2.0-only"
depends="perl perl-string-trim-more"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/Hash-DefHash-$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="0ab03b03f3269e4afa5027335cfbae5cf24023762268eebdbff6e086bb7c5cf2089b96cf7ee69b400afa29b98212d9441701a297a8c9cc5ac76267cf764d92cf  Hash-DefHash-0.071.tar.gz"