Skip to content

Commit a22ed7c

Browse files
🚿 CHORE: Tidy PKGBUILD
On branch main - Changes to be committed: - modified: .SRCINFO - modified: PKGBUILD
1 parent 272a93f commit a22ed7c

File tree

2 files changed

+46
-28
lines changed

2 files changed

+46
-28
lines changed

.SRCINFO

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pkgbase = perl-cddb-file
22
pkgdesc = Parse a CDDB/freedb data file
33
pkgver = 1.05
4-
pkgrel = 1
4+
pkgrel = 2
55
url = http://search.cpan.org/dist/CDDB-File
66
arch = any
77
license = PerlArtistic
@@ -13,4 +13,3 @@ pkgbase = perl-cddb-file
1313
sha512sums = 569294e1b8e26b905915cc4c97dd1fd55d223a662deaba22258a452a5a0fb79e07ec8b0175715a34ad6d6ec3ecce794e04c7e17dd4ee8db22535ef75ef6d09fa
1414

1515
pkgname = perl-cddb-file
16-

PKGBUILD

+45-26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

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+
35
# Disable various shellcheck rules that produce false positives in this file.
46
# Repository rules should be added to the .shellcheckrc file located in the
57
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
@@ -9,55 +11,72 @@
911
# ToDo: Add files: Tooling
1012
# FixMe: Namcap warnings and errors
1113

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"
1418

1519
pkgname="perl-cddb-file"
1620
pkgver="1.05"
17-
pkgrel="1"
21+
pkgrel="2"
1822
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+
)
2233
depends=(
2334
"perl"
2435
)
25-
makedepends=()
36+
# makedepends=()
37+
_tarname="${_relname}-${pkgver}"
2638
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+
)
3146

3247
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}"" \
3754
MODULEBUILDRC=/dev/null
3855

39-
cd "$srcdir/$_distdir"
56+
cd "${srcdir}/${_tarname}"
57+
4058
/usr/bin/perl Makefile.PL
59+
4160
make
4261
)
4362
}
4463

4564
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+
4871
make test
4972
)
5073
}
5174

5275
package() {
53-
cd "$srcdir/$_distdir"
76+
77+
cd "${srcdir}/${_tarname}"
78+
5479
make install
5580

56-
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
81+
find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
5782
}
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

Comments
 (0)