aboutsummaryrefslogtreecommitdiff
path: root/testing/perl-ffi-platypus-lang-cpp-demangle-xs/APKBUILD
blob: b223a9ac7a47af4182a8a1dba95217d326c951b4 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-ffi-platypus-lang-cpp-demangle-xs
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=FFI-Platypus-Lang-CPP-Demangle-XS
pkgver=0.03
pkgrel=0
pkgdesc="Demangle C++ symbols using the C++ ABI API"
url="https://metacpan.org/release/FFI-Platypus-Lang-CPP-Demangle-XS/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-extutils-cppguess"
checkdepends="perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-Platypus-Lang-CPP-Demangle-XS-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="8d4fe6d0d732805493e77940b80a9280776f4914c18430c6120673890ceda195959d4a15f6a984fb8d977b1322f2b0ed605bf8bbf5a35961f6a0d344a80c32fa  FFI-Platypus-Lang-CPP-Demangle-XS-0.03.tar.gz"