diff options
-rw-r--r-- | main/perl-text-wrapper/APKBUILD | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/main/perl-text-wrapper/APKBUILD b/main/perl-text-wrapper/APKBUILD index 5e17c6f10a..80a10d1c62 100644 --- a/main/perl-text-wrapper/APKBUILD +++ b/main/perl-text-wrapper/APKBUILD @@ -1,33 +1,33 @@ +# Automatically generated by apkbuild-cpan, template 1 # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-text-wrapper -pkgver=1.02 +_pkgreal=Text-Wrapper +pkgver=1.04 pkgrel=0 -pkgdesc="Text::Wrapper perl module" +pkgdesc="Word wrap text by breaking long lines" url="http://search.cpan.org/dist/Text-Wrapper/" arch="noarch" -license="GPLv2 or Artistic" -depends="perl" -makedepends="perl-dev" -install="" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/Text-Wrapper-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" -_builddir="$srcdir"/Text-Wrapper-$pkgver prepare() { - local i cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test } package() { @@ -36,4 +36,6 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="a0cdfe6e9e9627db147b3970d3fcad4d Text-Wrapper-1.02.tar.gz" +md5sums="85744d27f358fdfc3cc4e79fd04a0448 Text-Wrapper-1.04.tar.gz" +sha256sums="084d08e48fa37c8e75c9a724e55f7415e54ffa8ec63918ef7aec3494352d571b Text-Wrapper-1.04.tar.gz" +sha512sums="e3bd9db890bb93136cf7ea8662b50052fee63dc02d47f830628395fa57b589c02ff4e6af70238fcffb9bfb77da02168a46e828e1a61e6b26ed8c660099d72b13 Text-Wrapper-1.04.tar.gz" |