APKBUILD 1.01 KB
Newer Older
1
2
3
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-b-hooks-op-check
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
4
5
6
7
_pkgreal=B-Hooks-OP-Check
_author=ETHER
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
8
9
10
11
12
13
pkgver=0.22
pkgrel=0
pkgdesc="Perl module for wrapping OP check callbacks in XS"
url="https://metacpan.org/pod/B::Hooks::OP::Check"
arch="all"
license="Artistic-1.0-Perl"
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
14
depends="perl"
15
16
makedepends="perl-dev perl-extutils-depends"
subpackages="$pkgname-doc"
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
17
18
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

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="e68b08a34244afc73d7d3b2b0acdf8fe791b0b1f087b6b0496da0a1e655a9e51552ec8fb0f743c8626a0414fb469a2133d113ff5b4ba9f96217cc87bef877542  B-Hooks-OP-Check-0.22.tar.gz"