summaryrefslogtreecommitdiff
path: root/user/perl-devel-checkcompiler/APKBUILD
blob: 6e99b7ced04fee94c14b04ad4f7b93ff1dcccd18 (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
38
39
# 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"