aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-object-pad/APKBUILD
blob: 11212a3ccca3ea1ceb0fde3b845572a026671da7 (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
36
37
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-object-pad
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Object-Pad
pkgver=0.58
pkgrel=0
pkgdesc="a simple syntax for lexical slot-based objects"
url="https://metacpan.org/release/Object-Pad/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-xs-parse-sublike perl-xs-parse-keyword"
makedepends="perl-dev perl-module-build perl-xs-parse-sublike perl-xs-parse-keyword perl-module-build"
checkdepends="perl-test-refcount perl-data-dump perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Object-Pad-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="
3f0c603ae77f8d3ded32611d744e021e958c510081dd67543d2dc7ef2878c32c4184d5a671ed2169e939d401702cf881abac3590aa7f4d1ed61d1fcde12a3fc2  Object-Pad-0.58.tar.gz
"