aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-remove/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 22:09:43 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 22:27:55 +0000
commit2657397f5b02eb0c1c9cf7a99cd254859bdf2f99 (patch)
tree05f87f82c5cd0a41fe5c89030a5ed945d72c3365 /main/perl-file-remove/APKBUILD
parent4f908b89344809c140eb8b8492c3ad284611d4e4 (diff)
downloadaports-2657397f5b02eb0c1c9cf7a99cd254859bdf2f99.tar.bz2
aports-2657397f5b02eb0c1c9cf7a99cd254859bdf2f99.tar.xz
community/perl-file-remove: move to main and define check
moved due to perl-module-install
Diffstat (limited to 'main/perl-file-remove/APKBUILD')
-rw-r--r--main/perl-file-remove/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/perl-file-remove/APKBUILD b/main/perl-file-remove/APKBUILD
new file mode 100644
index 0000000000..c73558660b
--- /dev/null
+++ b/main/perl-file-remove/APKBUILD
@@ -0,0 +1,45 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-file-remove
+_pkgreal=File-Remove
+pkgver=1.57
+pkgrel=0
+pkgdesc="Remove files and directories"
+url="http://search.cpan.org/dist/File-Remove/"
+arch="noarch"
+license="GPL PerlArtistic"
+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
+}
+
+md5sums="fe7da64339206d6568037209a577724f File-Remove-1.57.tar.gz"
+sha256sums="b3becd60165c38786d18285f770b8b06ebffe91797d8c00cc4730614382501ad File-Remove-1.57.tar.gz"
+sha512sums="dec41e9ffaabe953e72386fa0f5112fe6ebaac0fdf6752256749162d505aaf17b905500fcf52d0cb2ef944788b8e13cb3b2cf37be8671a47aab9081e228bc92e File-Remove-1.57.tar.gz"