blob: a7b118c4d7f2d9330a7baaf27cd2935244229fbd (
plain) (
tree)
|
|
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-hash-defhash
_pkgreal=Hash-DefHash
_author=PERLANCAR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.072
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-1.0+"
depends="perl perl-string-trim-more perl-regexp-pattern-defhash"
checkdepends="perl-test-exception"
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="6dac91abd3d7c33e71a0cb54a41eee4d313fe57888c91825c7c2a4e6753c1ed0c0bb5d6def82534acb971a14dc641893ce0fc2a2e99c6e851b8fe1a750161c26 Hash-DefHash-0.072.tar.gz"
|