aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-file-sharedir
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-test-file-sharedir')
-rw-r--r--main/perl-test-file-sharedir/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/perl-test-file-sharedir/APKBUILD b/main/perl-test-file-sharedir/APKBUILD
new file mode 100644
index 0000000000..5653318381
--- /dev/null
+++ b/main/perl-test-file-sharedir/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor:
+# Maintainer:
+pkgname=perl-test-file-sharedir
+_pkgreal=Test-File-ShareDir
+pkgver=1.001002
+pkgrel=0
+pkgdesc="Create a Fake ShareDir for your modules for testing."
+url="http://search.cpan.org/dist/Test-File-ShareDir/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-class-tiny perl-file-sharedir perl-file-copy-recursive perl-path-tiny perl-scope-guard"
+cpanmakedepends=""
+cpancheckdepends="perl-test-fatal"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KE/KENTNL/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="858fd7483a63fe4742e48663d64088b811658c9d24dfc730ae1fb5786818949133de98f1cc3a705f67ad97fed1144420a96c22e2cfa663c79953c33f1633f00e Test-File-ShareDir-1.001002.tar.gz"