commit 5948c230e723752526fe30a566bbde81d3ff7ec3 Author: Anton Leontiev Date: Tue Jun 10 21:15:45 2014 +0400 Initial v2.07 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a3e7255eac1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = perl-business-isbn + pkgdesc = Perl package to work with International Standard Book Numbers + pkgver = 2.07 + 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-uri + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Business-ISBN-2.07.tar.gz + md5sums = c0049fb576b9fc3b2603bf7e9b3e91af + +pkgname = perl-business-isbn + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e6b6b4b8077d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.bz2 +*.tar.xz +*.tar.lz +src/ +pkg/ \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b726c9b66a78 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# CPAN Name : Business::ISBN +# Contributor: Anton Leontiev +# Generator : CPANPLUS::Dist::Arch 1.28 + +pkgname=perl-business-isbn +pkgver=2.07 +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) +options=(!emptydirs) +md5sums=('c0049fb576b9fc3b2603bf7e9b3e91af') + +build() { + cd Business-ISBN-2.07 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd Business-ISBN-2.07 + make test +} + +package() { + cd Business-ISBN-2.07 + make install DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} diff --git a/PKGBUILD.tt b/PKGBUILD.tt new file mode 100644 index 000000000000..00979c2c3892 --- /dev/null +++ b/PKGBUILD.tt @@ -0,0 +1,32 @@ +# CPAN Name : Business::ISBN +# Contributor: [% packager %] +# Generator : CPANPLUS::Dist::Arch [% version %] + +pkgname=[% pkgname %] +pkgver=[% pkgver %] +pkgrel=[% pkgrel %] +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') +source=([% source %]) +options=(!emptydirs) +md5sums=('[% md5sums %]') + +build() { + cd [% distdir %] + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd [% distdir %] + make test +} + +package() { + cd [% distdir %] + make install DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +}