diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:18:51 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:19:54 +0000 |
commit | da52561a179ebb1ee4811c46e603afd9a728c315 (patch) | |
tree | 17e80e2f60a2658908c34485cc0ad0a435424b0a /testing/perl-file-remove | |
parent | f9fd58923942d44268fed2da1154df3409dcdb98 (diff) | |
download | aports-da52561a179ebb1ee4811c46e603afd9a728c315.tar.bz2 aports-da52561a179ebb1ee4811c46e603afd9a728c315.tar.xz |
testing/perl-file-remove: new aport
Diffstat (limited to 'testing/perl-file-remove')
-rw-r--r-- | testing/perl-file-remove/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-file-remove/APKBUILD b/testing/perl-file-remove/APKBUILD new file mode 100644 index 0000000000..4457ed0d15 --- /dev/null +++ b/testing/perl-file-remove/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +pkgname=perl-file-remove +_pkgreal=File-Remove +pkgver=1.52 +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/A/AD/ADAMK/$_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="e9d6c33a2aac9789036afb4cc23ed8eb File-Remove-1.52.tar.gz" +sha256sums="4154dc574b8a9a3a555d323f152ac742363c6a69c1f61de15b72728813550bdd File-Remove-1.52.tar.gz" +sha512sums="6651de14d8fccee9bfeb83bd794c399135aee91733beb7a8a30e6611b4f514ad1989df2459bc72b2d17c9ded57d018d95ade36da2ee24fcf8a22a9659ecdeb5b File-Remove-1.52.tar.gz" |