summaryrefslogtreecommitdiff
path: root/system/perl-file-remove/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/perl-file-remove/APKBUILD')
-rw-r--r--system/perl-file-remove/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/system/perl-file-remove/APKBUILD b/system/perl-file-remove/APKBUILD
new file mode 100644
index 000000000..bed356f5e
--- /dev/null
+++ b/system/perl-file-remove/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-file-remove
+_pkgreal=File-Remove
+pkgver=1.57
+pkgrel=1
+pkgdesc="Remove files and directories"
+url="http://search.cpan.org/dist/File-Remove/"
+arch="noarch"
+license="GPL-2.0-only OR Artistic-1.0-Perl"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="dec41e9ffaabe953e72386fa0f5112fe6ebaac0fdf6752256749162d505aaf17b905500fcf52d0cb2ef944788b8e13cb3b2cf37be8671a47aab9081e228bc92e File-Remove-1.57.tar.gz"