blob: a7b118c4d7f2d9330a7baaf27cd2935244229fbd (
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-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"
|