summaryrefslogblamecommitdiff
path: root/user/perl-devel-checkcompiler/APKBUILD
blob: 6e99b7ced04fee94c14b04ad4f7b93ff1dcccd18 (plain) (tree)






































                                                                                                                                                                              
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-devel-checkcompiler
pkgver=0.07
pkgrel=0
pkgdesc="Check the compiler's availability"
url="https://metacpan.org/pod/Devel::CheckCompiler"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0"
depends="perl"
makedepends="perl-dev perl-module-build-tiny"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SY/SYOHEX/Devel-CheckCompiler-$pkgver.tar.gz"
builddir="$srcdir/Devel-CheckCompiler-$pkgver"

prepare() {
	cd "$builddir"
	perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build
}

check() {
	cd "$builddir"
	./Build test
}

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

sha512sums="147fbdab382ff40bf1402d2d6be1143fe77403cd2444e854fdf11eb02e8acdcab8cb6bbdd7f3aef01cc64fac2862efaa044c5148c7770b84b464f7360c399d7a  Devel-CheckCompiler-0.07.tar.gz"