|
1 | 1 | #!/bin/bash
|
2 | 2 |
|
| 3 | +# Based on the original packaging by 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> |
| 4 | + |
3 | 5 | # Disable various shellcheck rules that produce false positives in this file.
|
4 | 6 | # Repository rules should be added to the .shellcheckrc file located in the
|
5 | 7 | # repository root directory, see https://github.com/koalaman/shellcheck/wiki
|
|
9 | 11 | # ToDo: Add files: Tooling
|
10 | 12 | # FixMe: Namcap warnings and errors
|
11 | 13 |
|
12 |
| -# Maintainer: Ross Clark <[email protected]> |
13 |
| -# Contributor: Ross Clark <[email protected]> |
| 14 | +# Maintainer: Ross Clark <https://github.com/Archiv8/perl-cddb-file/discussions> |
| 15 | +# Contributor: Ross Clark <https://github.com/Archiv8/perl-cddb-file/discussions> |
| 16 | + |
| 17 | +_relname="CDDB-File" |
14 | 18 |
|
15 | 19 | pkgname="perl-cddb-file"
|
16 | 20 | pkgver="1.05"
|
17 |
| -pkgrel="1" |
| 21 | +pkgrel="2" |
18 | 22 | pkgdesc="Parse a CDDB/freedb data file"
|
19 |
| -arch=("any") |
20 |
| -license=("PerlArtistic" "GPL") |
21 |
| -options=("!emptydirs") |
| 23 | +arch=( |
| 24 | + "any" |
| 25 | +) |
| 26 | +license=( |
| 27 | + "PerlArtistic" |
| 28 | + "GPL" |
| 29 | +) |
| 30 | +options=( |
| 31 | + "!emptydirs" |
| 32 | +) |
22 | 33 | depends=(
|
23 | 34 | "perl"
|
24 | 35 | )
|
25 |
| -makedepends=() |
| 36 | +# makedepends=() |
| 37 | +_tarname="${_relname}-${pkgver}" |
26 | 38 | url="http://search.cpan.org/dist/CDDB-File"
|
27 |
| -source=("http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/CDDB-File-1.05.tar.gz") |
28 |
| -md5sums=("c619e60e86a2bb227d434066c742b189") |
29 |
| -sha512sums=("569294e1b8e26b905915cc4c97dd1fd55d223a662deaba22258a452a5a0fb79e07ec8b0175715a34ad6d6ec3ecce794e04c7e17dd4ee8db22535ef75ef6d09fa") |
30 |
| -_distdir="CDDB-File-1.05" |
| 39 | +source=("http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/${_tarname}.tar.gz") |
| 40 | +md5sums=( |
| 41 | + "c619e60e86a2bb227d434066c742b189" |
| 42 | +) |
| 43 | +sha512sums=( |
| 44 | + "569294e1b8e26b905915cc4c97dd1fd55d223a662deaba22258a452a5a0fb79e07ec8b0175715a34ad6d6ec3ecce794e04c7e17dd4ee8db22535ef75ef6d09fa" |
| 45 | +) |
31 | 46 |
|
32 | 47 | build() {
|
33 |
| - ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ |
34 |
| - PERL_AUTOINSTALL=--skipdeps \ |
35 |
| - PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR="$pkgdir"" \ |
36 |
| - PERL_MB_OPT="--installdirs vendor --destdir "$pkgdir"" \ |
| 48 | + |
| 49 | + ( |
| 50 | + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ |
| 51 | + PERL_AUTOINSTALL=--skipdeps \ |
| 52 | + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR="${pkgdir}"" \ |
| 53 | + PERL_MB_OPT="--installdirs vendor --destdir "${pkgdir}"" \ |
37 | 54 | MODULEBUILDRC=/dev/null
|
38 | 55 |
|
39 |
| - cd "$srcdir/$_distdir" |
| 56 | + cd "${srcdir}/${_tarname}" |
| 57 | + |
40 | 58 | /usr/bin/perl Makefile.PL
|
| 59 | + |
41 | 60 | make
|
42 | 61 | )
|
43 | 62 | }
|
44 | 63 |
|
45 | 64 | check() {
|
46 |
| - cd "$srcdir/$_distdir" |
47 |
| - ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" |
| 65 | + |
| 66 | + cd "${srcdir}/${_tarname}" |
| 67 | + |
| 68 | + ( |
| 69 | + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" |
| 70 | + |
48 | 71 | make test
|
49 | 72 | )
|
50 | 73 | }
|
51 | 74 |
|
52 | 75 | package() {
|
53 |
| - cd "$srcdir/$_distdir" |
| 76 | + |
| 77 | + cd "${srcdir}/${_tarname}" |
| 78 | + |
54 | 79 | make install
|
55 | 80 |
|
56 |
| - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete |
| 81 | + find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete |
57 | 82 | }
|
58 |
| - |
59 |
| -# Local Variables: |
60 |
| -# mode: shell-script |
61 |
| -# sh-basic-offset: 2 |
62 |
| -# End: |
63 |
| -# vim:set ts=2 sw=2 et: |
|
0 commit comments