diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:32:29 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-26 14:32:29 +0000 |
commit | 5836e60f64b3d8ae5a633c0d8be898b210a9fafe (patch) | |
tree | f3e7b44aed77358e466a8f8ffa15bfe5f2b99e43 /community | |
parent | 4823b2cf53933c05a3e909317da8e22f29daad32 (diff) | |
download | aports-5836e60f64b3d8ae5a633c0d8be898b210a9fafe.tar.bz2 aports-5836e60f64b3d8ae5a633c0d8be898b210a9fafe.tar.xz |
community/perl-file-remove: moved from unmaintained
Diffstat (limited to 'community')
-rw-r--r-- | community/perl-file-remove/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/perl-file-remove/APKBUILD b/community/perl-file-remove/APKBUILD new file mode 100644 index 0000000000..17cbaf034c --- /dev/null +++ b/community/perl-file-remove/APKBUILD @@ -0,0 +1,40 @@ +# 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 && 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" |