diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:40:17 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:40:17 +0000 |
commit | 5bfa9aad8d9846d88ad20c09c7b82d873875473c (patch) | |
tree | b443a4d8b696290dc6fd0791f19bab710ee14635 /community/perl-text-roman/APKBUILD | |
parent | 9f1c07bc67ec438257b56b50a2b3c0f924b3aaa9 (diff) | |
download | aports-5bfa9aad8d9846d88ad20c09c7b82d873875473c.tar.bz2 aports-5bfa9aad8d9846d88ad20c09c7b82d873875473c.tar.xz |
community/perl-text-roman: moved from testing
Diffstat (limited to 'community/perl-text-roman/APKBUILD')
-rw-r--r-- | community/perl-text-roman/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-text-roman/APKBUILD b/community/perl-text-roman/APKBUILD new file mode 100644 index 0000000000..cee9df66c9 --- /dev/null +++ b/community/perl-text-roman/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-text-roman +_pkgreal=Text-Roman +pkgver=3.5 +pkgrel=0 +pkgdesc="Allows conversion between Roman and Arabic algarisms." +url="http://search.cpan.org/dist/Text-Roman/" +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/SY/SYP/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + 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="1f6b09c0cc1f4425b565ff787a39fd83 Text-Roman-3.5.tar.gz" +sha256sums="cb4a08a3b151802ffb2fce3258a416542ab81db0f739ee474a9583ffb73e046a Text-Roman-3.5.tar.gz" +sha512sums="597ca054094f58c0983c66ce2b22dbc4d69861b02495663987e6b66dc0044a0d7e18e51ef817ed3c76832d283c01c6f9f51e68af7cb6b186b27553b5a877bc33 Text-Roman-3.5.tar.gz" |