aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-object-pad/APKBUILD
blob: de8f06f7be88ed4208b13c33a9bd35c5e9e853fa (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.65
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="
8d6c195356fa78f0b98e9abb7616d4f70086a2a5c81684bacdffc3340c373d2974893eea1a5ff9d5235b6d021f0983fc6ece653a58ff24fc723a3f43923385b4  Object-Pad-0.65.tar.gz
"