aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-21 02:10:56 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-03-21 20:23:41 +0000
commit2b5516c2f69e9643a92399abe530cd6ae86d22c7 (patch)
treeb94022aea3c06a97fb11bc19a527e674b4c43205
parentac957b763f2b78762a612d049f5f45e3e61922e3 (diff)
downloadaports-2b5516c2f69e9643a92399abe530cd6ae86d22c7.tar.bz2
aports-2b5516c2f69e9643a92399abe530cd6ae86d22c7.tar.xz
community/perl-alien-build: new aport
-rw-r--r--community/perl-alien-build/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/perl-alien-build/APKBUILD b/community/perl-alien-build/APKBUILD
new file mode 100644
index 0000000000..65f4c1b9b5
--- /dev/null
+++ b/community/perl-alien-build/APKBUILD
@@ -0,0 +1,36 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-alien-build
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Alien-Build
+pkgver=2.17
+pkgrel=0
+pkgdesc="Build external dependencies for use in CPAN"
+url="https://metacpan.org/release/Alien-Build/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-ffi-checklib perl-file-which perl-capture-tiny perl-file-chdir perl-path-tiny"
+makedepends="perl-dev perl-file-which"
+checkdepends="perl-test2-suite"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-$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="daa504cc2017affcdfee6b2b27f6ee496e371908924b5c44e440ae2eb70fa9a02fa438742446d7dc4a55ec441daa76273736d2b408ac8e1060f9cfad7143998d Alien-Build-2.17.tar.gz"