summaryrefslogtreecommitdiff
path: root/user/perl-extutils-cppguess/APKBUILD
blob: 1f876e2fe94d4a7ffff753c3fdbb7b780c0291b6 (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
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-extutils-cppguess
_pkgreal=ExtUtils-CppGuess
_author=ETJ
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.26
pkgrel=0
pkgdesc="Perl module for checking C++ compiler and flags"
url="https://metacpan.org/pod/ExtUtils::CppGuess"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-capture-tiny perl-extutils-parsexs"
makedepends="perl-dev perl-module-build perl-extutils-cbuilder"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/ExtUtils-CppGuess-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="35e8e11f7df5d4a2a306cbe1df7a879291cb041677c740d95fc228e8ee812a127be4c70bc2ae6b25d3e73de69e1796539dacf3bb0b1a3311de3dea588335a225  ExtUtils-CppGuess-0.26.tar.gz"