summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-25 19:26:38 -0700
committerDan Theisen <djt@hxx.in>2018-09-25 19:31:35 -0700
commit6e2d7d30a0a41837d133c9be0d046d4c62a54411 (patch)
tree247cc698994aaa6ccf23d15ad9f43b6946c4751c
parent5750f059274d1ae12f20bf4893687d7a37df25cc (diff)
downloadpackages-6e2d7d30a0a41837d133c9be0d046d4c62a54411.tar.gz
packages-6e2d7d30a0a41837d133c9be0d046d4c62a54411.tar.bz2
packages-6e2d7d30a0a41837d133c9be0d046d4c62a54411.tar.xz
packages-6e2d7d30a0a41837d133c9be0d046d4c62a54411.zip
user/perl-devel-checkcompiler: new package
-rw-r--r--user/perl-devel-checkcompiler/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/perl-devel-checkcompiler/APKBUILD b/user/perl-devel-checkcompiler/APKBUILD
new file mode 100644
index 000000000..6e99b7ced
--- /dev/null
+++ b/user/perl-devel-checkcompiler/APKBUILD
@@ -0,0 +1,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"