aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-fork/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-09-27 07:18:35 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-09-27 10:57:18 +0000
commitc9f1ce719ec6a7165743cd977a3a83a0f0679b65 (patch)
tree0d22b0b6677937f558703eaea4c396fb7dd051cc /main/perl-test-fork/APKBUILD
parent1a72ac4ebd78de32edfaf8c9c5aa7bfda5d54e1c (diff)
downloadaports-c9f1ce719ec6a7165743cd977a3a83a0f0679b65.tar.gz
aports-c9f1ce719ec6a7165743cd977a3a83a0f0679b65.tar.bz2
aports-c9f1ce719ec6a7165743cd977a3a83a0f0679b65.tar.xz
main/perl-test-fork: new aport
https://metacpan.org/release/Test-Fork/ test code which forks
Diffstat (limited to 'main/perl-test-fork/APKBUILD')
-rw-r--r--main/perl-test-fork/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/perl-test-fork/APKBUILD b/main/perl-test-fork/APKBUILD
new file mode 100644
index 0000000000..c15ed242e8
--- /dev/null
+++ b/main/perl-test-fork/APKBUILD
@@ -0,0 +1,34 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=perl-test-fork
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Test-Fork
+pkgver=0.02
+pkgrel=0
+pkgdesc="test code which forks"
+url="https://metacpan.org/release/Test-Fork/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev perl-module-build"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/M/MS/MSCHWERN/Test-Fork-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ perl Build.PL --installdirs=vendor
+ ./Build
+}
+
+check() {
+ ./Build test
+}
+
+package() {
+ ./Build install --destdir="$pkgdir"
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="854f92eabc786735dfbc3c7d0ad29e4e65ee8c99bac1bebab79876c064dec60cbdfd7ef1f5a04d7a5f5dc73b633e903d4d68c4caedd5890914707b829bca46fa Test-Fork-0.02.tar.gz"