diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 17 | ||||
-rw-r--r-- | PKGBUILD | 53 |
3 files changed, 60 insertions, 24 deletions
@@ -1,16 +1,20 @@ pkgbase = perl-parallel-scoreboard pkgdesc = a scoreboard for monitoring status of many workers pkgver = 0.08 - pkgrel = 1 - url = http://search.cpan.org/dist/Parallel-Scoreboard + pkgrel = 2 + url = https://search.cpan.org/dist/Parallel-Scoreboard arch = any - license = PerlArtistic - license = GPL + license = GPL-1.0-or-later OR Artistic-1.0-Perl + checkdepends = perl-test-simple + checkdepends = perl-test-warn + makedepends = perl-module-install depends = perl-class-accessor-lite depends = perl-html-parser depends = perl-json options = !emptydirs - source = http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Parallel-Scoreboard-0.08.tar.gz + source = https://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Parallel-Scoreboard-0.08.tar.gz + source = Parallel-Scoreboard-LICENSE-GPL-1.0-or-later.txt::https://raw.githubusercontent.com/Perl/perl5/perl-5.10.0/Copying b2sums = c923e6d56f09a689540c9884d256f3ca054aeb1ed50fd7490ea636859fec31aefeaf4f8e565970594901c2c29ad4a238fba6ee221a72d738ab33502c85ea313e + b2sums = 6381e7c09a2ddc4dcf237096fea3b0072fdd7b8c506270041a231af9d8d72d30d57e804e5d6c66d5b915023e185ee537edef8ca346dce4a88bce78d42fe4dce3 pkgname = perl-parallel-scoreboard diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e1cc0116832e --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# based on https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +*.tar +*.tar.* +*.rpm +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* + +*/ +*.orig +*.bak +*.backup +*.kate-swp @@ -1,49 +1,64 @@ +# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > # Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com> # Generator : CPANPLUS::Dist::Arch 1.25 +_distname='Parallel-Scoreboard' pkgname='perl-parallel-scoreboard' pkgver='0.08' -pkgrel='1' +pkgrel='2' pkgdesc="a scoreboard for monitoring status of many workers" arch=('any') -license=('PerlArtistic' 'GPL') +license=('GPL-1.0-or-later OR Artistic-1.0-Perl') options=('!emptydirs') depends=('perl-class-accessor-lite' 'perl-html-parser' 'perl-json') -makedepends=() -url='http://search.cpan.org/dist/Parallel-Scoreboard' -_tarname="Parallel-Scoreboard-${pkgver}" -source=("http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/${_tarname}.tar.gz") -b2sums=('c923e6d56f09a689540c9884d256f3ca054aeb1ed50fd7490ea636859fec31aefeaf4f8e565970594901c2c29ad4a238fba6ee221a72d738ab33502c85ea313e') +makedepends=('perl-module-install') +checkdepends=('perl-test-simple' 'perl-test-warn') +url="https://search.cpan.org/dist/${_distname}" +_licensefilename_SPDX_GPL1='GPL-1.0-or-later.txt' +_licensefilename_SPDX_PerlArtistic='Artistic-1.0-Perl.txt' +source=("https://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/${_distname}-${pkgver}.tar.gz" + "${_distname}-LICENSE-${_licensefilename_SPDX_GPL1}::https://raw.githubusercontent.com/Perl/perl5/perl-5.10.0/Copying") +b2sums=('c923e6d56f09a689540c9884d256f3ca054aeb1ed50fd7490ea636859fec31aefeaf4f8e565970594901c2c29ad4a238fba6ee221a72d738ab33502c85ea313e' + '6381e7c09a2ddc4dcf237096fea3b0072fdd7b8c506270041a231af9d8d72d30d57e804e5d6c66d5b915023e185ee537edef8ca346dce4a88bce78d42fe4dce3') + +prepare() { + cd "${srcdir}/${_distname}-${pkgver}" + + echo "Removing source-vendored, outdated Test::More and Test::Warn pods..." + rm --verbose --force --recursive ./inc/Test/ + sed -e '/^inc\/Test\//d' -i MANIFEST + + echo "Preparing license resources..." + sed -n '/^LICENSE$/,$p' README > LICENSE.txt + cp --verbose "../${_distname}-LICENSE-${_licensefilename_SPDX_GPL1}" "LICENSE-${_licensefilename_SPDX_GPL1}" + ln --verbose --symbolic --no-target-directory "/usr/share/licenses/spdx/${_licensefilename_SPDX_PerlArtistic}" "LICENSE-${_licensefilename_SPDX_PerlArtistic}" +} build() { ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ PERL_AUTOINSTALL=--skipdeps \ - PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ - PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \ + PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \ MODULEBUILDRC=/dev/null - cd "$srcdir/$_tarname" + cd "${srcdir}/${_distname}-${pkgver}" /usr/bin/perl Makefile.PL make ) } check() { - cd "$srcdir/$_tarname" + cd "${srcdir}/${_distname}-${pkgver}" ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" make test ) } package() { - cd "$srcdir/$_tarname" + cd "${srcdir}/${_distname}-${pkgver}" make install - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete -} + find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete -# Local Variables: -# mode: shell-script -# sh-basic-offset: 2 -# End: -# vim:set ts=2 sw=2 et: + install -Dm644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |