diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-06-10 08:11:29 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-06-10 08:11:29 +0000 |
commit | 2c0d7642a92802e47a6aacb6f5af970897e3c96f (patch) | |
tree | 592e17d880198ea40cebb24c68529d38e3c62954 | |
parent | 4a294ade027361e757688b3a6cbd280b37de0d22 (diff) | |
download | aports-2c0d7642a92802e47a6aacb6f5af970897e3c96f.tar.bz2 aports-2c0d7642a92802e47a6aacb6f5af970897e3c96f.tar.xz |
main/perl-io: new aport
-rw-r--r-- | main/perl-io/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/perl-io/APKBUILD b/main/perl-io/APKBUILD new file mode 100644 index 0000000000..a3b95b8351 --- /dev/null +++ b/main/perl-io/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=perl-io +_pkgreal=IO +pkgver=1.25 +pkgrel=0 +pkgdesc="Perl core IO modules" +url="http://search.cpan.org/dist/IO/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/$_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}'` + # FIXME: it fails a test due to deprecated code + make # && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="b88aaf2bb7437725b11e9eb48dfb6c93 IO-1.25.tar.gz" +sha256sums="89790db8b9281235dc995c1a85d532042ff68a90e1504abd39d463f05623e7b5 IO-1.25.tar.gz" +sha512sums="eb922dc89f3dd5996b3abd5e5ffc17b581f7b40b9128461da5d2f97466606a2775e44cb1a707673a4e9fbcda69318d462e1d6ad44c26c9378c2a5b49fb8c06e2 IO-1.25.tar.gz" |