Updated to v2.09

This commit is contained in:
Anton Leontiev 2015-03-11 08:55:21 +03:00
parent 5948c230e7
commit d565bb33e2
3 changed files with 31 additions and 15 deletions

View file

@ -1,17 +1,17 @@
pkgbase = perl-business-isbn
pkgdesc = Perl package to work with International Standard Book Numbers
pkgver = 2.07
pkgver = 2.09
pkgrel = 1
url = http://search.cpan.org/dist/Business-ISBN
arch = any
license = PerlArtistic
license = GPL
depends = perl
depends = perl-business-isbn-data>=20081208
depends = perl-business-isbn-data>=20140910
depends = perl-uri
options = !emptydirs
source = http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Business-ISBN-2.07.tar.gz
md5sums = c0049fb576b9fc3b2603bf7e9b3e91af
source = http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Business-ISBN-2.09.tar.gz
md5sums = 5ebf339c409d99cdfa6f96974ef96780
pkgname = perl-business-isbn

View file

@ -1,32 +1,40 @@
# CPAN Name : Business::ISBN
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Generator : CPANPLUS::Dist::Arch 1.28
# Generator : CPANPLUS::Dist::Arch 1.29
pkgname=perl-business-isbn
pkgver=2.07
pkgver=2.09
pkgrel=1
pkgdesc='Perl package to work with International Standard Book Numbers'
arch=('any')
url='http://search.cpan.org/dist/Business-ISBN'
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-business-isbn-data>=20081208' 'perl-uri')
source=(http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Business-ISBN-2.07.tar.gz)
depends=('perl' 'perl-business-isbn-data>=20140910' 'perl-uri')
source=(http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Business-ISBN-2.09.tar.gz)
options=(!emptydirs)
md5sums=('c0049fb576b9fc3b2603bf7e9b3e91af')
md5sums=('5ebf339c409d99cdfa6f96974ef96780')
sanitize() {
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
}
build() {
cd Business-ISBN-2.07
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
cd Business-ISBN-2.09
sanitize
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd Business-ISBN-2.07
cd Business-ISBN-2.09
sanitize
make test
}
package() {
cd Business-ISBN-2.07
cd Business-ISBN-2.09
sanitize
make install DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

View file

@ -9,24 +9,32 @@ pkgdesc='Perl package to work with International Standard Book Numbers'
arch=('any')
url='[% url %]'
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-business-isbn-data>=20081208' 'perl-uri')
depends=('perl' 'perl-business-isbn-data>=20140910' 'perl-uri')
source=([% source %])
options=(!emptydirs)
md5sums=('[% md5sums %]')
sanitize() {
unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
}
build() {
cd [% distdir %]
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
sanitize
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd [% distdir %]
sanitize
make test
}
package() {
cd [% distdir %]
sanitize
make install DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}