diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-08 13:54:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-18 07:46:41 +0000 |
commit | e542f322b8a231b7d8c06294f0073eb80dac3f0a (patch) | |
tree | c9e827babdf9f07d4e32c0fd33640c8003f29cd4 /main/perl-convert-uulib | |
parent | b3dd6b553a66dc2afeab62ebf5b79ae2acd25ae2 (diff) | |
download | aports-e542f322b8a231b7d8c06294f0073eb80dac3f0a.tar.bz2 aports-e542f322b8a231b7d8c06294f0073eb80dac3f0a.tar.xz |
main/perl-convert-uulib: upgrade to 1.4
Diffstat (limited to 'main/perl-convert-uulib')
-rw-r--r-- | main/perl-convert-uulib/APKBUILD | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/main/perl-convert-uulib/APKBUILD b/main/perl-convert-uulib/APKBUILD index 71086e36f4..51aee4109c 100644 --- a/main/perl-convert-uulib/APKBUILD +++ b/main/perl-convert-uulib/APKBUILD @@ -1,27 +1,39 @@ # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-convert-uulib -_realname=Convert-UUlib -pkgver=1.12 -pkgrel=3 -pkgdesc="Perl interface to the uulib library" -url="http://search.cpan.org/~mlehmann/Convert-UUlib-1.12/UUlib.pm" +pkgver=1.4 +pkgrel=0 +pkgdesc="Convert::UUlib perl module" +url="http://search.cpan.org/dist/Convert-UUlib/" arch="all" -license="Artistic GPL2" +license="GPLv2 or Artistic" depends="perl" makedepends="perl-dev" -install= +install="" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_realname-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Convert-UUlib-$pkgver.tar.gz" -build() { - cd "$srcdir/$_realname-$pkgver" +_builddir="$srcdir"/Convert-UUlib-$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 +} +build() { + cd "$_builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make DESTDIR="$pkgdir" install - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + make && make test || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="360d29db09aa7692d8873b336b7ec9d7 Convert-UUlib-1.12.tar.gz" +md5sums="a6486df1d9ce319406fb9d5a610da759 Convert-UUlib-1.4.tar.gz" |