summaryrefslogtreecommitdiff
path: root/main/perl-test-refcount/APKBUILD
blob: a587a0f5787e80f99a784432031c2137789f796b (plain)
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
36
37
38
39
40
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-test-refcount
_pkgreal=Test-Refcount
pkgver=0.10
pkgrel=1
pkgdesc="assert reference counts on objects"
url="https://metacpan.org/release/Test-Refcount"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$builddir"
	perl Build.PL installdirs=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

check() {
	./Build test
}

package() {
	cd "$builddir"
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="7fac2a6bcb96da0ed61c53aaa2278e1ac998bd62314b95f307fe6ee032fd7d89264968f3ad78066186b112af0ba45960d5d1c81822bcd5f218418ea81236c4e1  Test-Refcount-0.10.tar.gz"