summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba47603ccb730ef3e6e30be55023003d5505b016 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: andmars <andreas.marschall @ unitybox.de>

pkgname=perl-musicbrainz-discid
pkgver=0.06
pkgrel=3
pkgdesc="MusicBrainz::DiscID module"
arch=(x86_64)
url="https://metacpan.org/release/MusicBrainz-DiscID"
license=(MIT)
depends=(glibc libdiscid perl perl-module-build)
options=(!emptydirs) #purge
source=("https://search.cpan.org/CPAN/authors/id/N/NJ/NJH/MusicBrainz-DiscID-$pkgver.tar.gz")
sha256sums=('ba0b6ed09897ff563ba59872ee93715bef37157515b19b7c6d6f286e6548ecab')

build() {
  cd "MusicBrainz-DiscID-$pkgver"
  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 "MusicBrainz-DiscID-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1
  make test
}

package() {
  cd "MusicBrainz-DiscID-$pkgver"
  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
  install -D LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
}