aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-extutils-cppguess/APKBUILD
blob: ee73a82e5642df05cd64adbe3b8fc2065c617aa5 (plain) (tree)
1
2
3
4
5
6
7
8





                                                              
           
        


























                                                                                       
            
                                                                                                                                                               
 
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-extutils-cppguess
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=ExtUtils-CppGuess
pkgver=0.23
pkgrel=0
pkgdesc="guess C++ compiler and flags"
url="https://metacpan.org/release/ExtUtils-CppGuess/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-capture-tiny"
makedepends="perl-dev"
checkdepends="perl-capture-tiny perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETJ/ExtUtils-CppGuess-$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="
f984f653cffd6288851af3e353532f369d229a8b903f8e0ba7c1a5e9d8bd1b63c3415403b45bf1e8c32dc5c330ed26d1351e37929bd22af271ac295adce737f9  ExtUtils-CppGuess-0.23.tar.gz
"