-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
86 lines (65 loc) · 1.87 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
# Based on the original PKGBUILD by outopos <spaceflorent at aol.com>
# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# ToDo: Add files: User documentation
# ToDo: Add files: Tooling
# FixMe: Namcap warnings and errors
# Maintainer: Ross Clark <https://github.com/Archiv8/perl-net-freedb/discussions>
# Contributor: Ross Clark <https://github.com/Archiv8/perl-net-freedb/discussions>
_relname="Net-FreeDB"
pkgname="perl-net-freedb"
pkgver=0.10
pkgrel=2
pkgdesc="Net::FreeDB is an oo-based module to interface with FreeDB servers"
arch=(
"any"
)
url="https://metacpan.org/release/Net-FreeDB"
license=(
"GPL"
"PerlArtistic"
)
depends=(
# Arch Linux official packages
"perl"
"perl-http-message"
"perl-io-socket-inet6"
"perl-libwww"
"perl-mailtools"
"perl-moo"
"perl-test-most"
# Archiv8 / AUR packages
"perl-cddb-file"
)
options=(
"!emptydirs" purge
)
_tarname="${_relname}-${pkgver}"
source=(
"https://cpan.metacpan.org/authors/id/D/DS/DSHULTZ/${_tarname}.tar.gz"
)
sha512sums=(
"b1b249dfb81128645e6e3481f93d914fc11ecf931b91f6a21a065fa2fde8674f9c8b5466b3112be4f4f28556c0ec899cf8723e60adaaf26b5165e61d61445368"
)
build() {
cd "${srcdir}/${_tarname}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
make
}
check() {
cd "${srcdir}/${_tarname}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd "${srcdir}/${_tarname}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
}