Commit 4173e01c authored by Natanael Copa's avatar Natanael Copa

main/perl-text-wrapper: upgrade to 1.04

parent 1d226b53
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment