summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7fe9e7eb9bc535419624cfc4373bcf5109c55b4f (plain)
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
# Maintainer: outopos <spaceflorent at aol.com>

pkgname=perl-net-freedb
pkgver=0.10
pkgrel=2
pkgdesc='Net::FreeDB is an oo-based module to interface with FreeDB servers'
_dist=Net-FreeDB
arch=('any')
url="https://metacpan.org/release/Net-FreeDB"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-http-message' 'perl-mailtools' 'perl-libwww' 'perl-moo' 'perl-cddb-file' 'perl-io-socket-inet6' 'perl-test-most')
options=('!emptydirs' purge)
source=("https://cpan.metacpan.org/authors/id/D/DS/DSHULTZ/$_dist-$pkgver.tar.gz"
        "implicit-function-declaration.patch")
md5sums=('e10ac95e23b146a90bd9f0a84e31d18f'
        'be3c0061a0556b0fe3e9b5e36c101096')
sha512sums=('b1b249dfb81128645e6e3481f93d914fc11ecf931b91f6a21a065fa2fde8674f9c8b5466b3112be4f4f28556c0ec899cf8723e60adaaf26b5165e61d61445368'
            'c2846e66e9e557cc596cbb8aefdbf8a3f897024ed1fa89028df7669f020db8869eb614e3f99552544a5c95d9379530c436cecaea559051883cc6540f64a4322b')

build() {
  cd "$srcdir/$_dist-$pkgver"
  patch -p1 < ../implicit-function-declaration.patch
  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/$_dist-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1
  make test
}

package() {
  cd "$srcdir/$_dist-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}