Package Details: perl-audio-scan 0.93-9

Git Clone URL: https://aur.archlinux.org/perl-audio-scan.git (read-only)
Package Base: perl-audio-scan
Description: Fast C metadata and tag reader for all common audio file formats
Upstream URL: http://search.cpan.org/dist/Audio-Scan
Licenses: GPL, PerlArtistic
Submitter: xenoterracide
Maintainer: mbunkus
Last Packager: mbunkus
Votes: 24
Popularity: 0.000013
First Submitted: 2009-12-26 15:02
Last Updated: 2016-06-11 07:58

Latest Comments

mbunkus commented on 2014-03-02 17:16

Thanks for the heads-up. I've removed perl-file-slurp from the dependencies.

kolewu commented on 2014-02-28 10:50

Dependecy on perl-file-slurp-tiny is now correctly declared in package perl-tree-dag-node so no dependency on perl-file-slurp is needed anymore.

kolewu commented on 2014-02-27 11:09

I have filed a report: https://bugs.archlinux.org/task/39063

mbunkus commented on 2014-02-27 07:33

File::Slurp::Tiny is not a dependency of Audio::Scan directly. According to [1] it is a recursive dependency of Test::Warn ( -> Test::Tree_DAG -> File::Slurp::Tiny). So please report this issue with the maintainer(s) of those packages.

That I've added perl-file-slurp earlier has already been a workaround for those maintainers not doing their job properly :(

[1] http://deps.cpantesters.org/?module=Audio%3A%3AScan;perl=latest

mgd commented on 2014-02-26 21:57

Failed to makepkg. The tests seem to depend on perl-file-slurp-tiny which I have not found in the regular or AUR repositories.

Any hint ?

mbunkus commented on 2013-11-05 15:51

@KOL-93: done, thanks.

KOL-93 commented on 2013-11-05 09:44

community/perl-file-slurp is needed as dependency


t/mp3.t ............ Can't locate File/Slurp.pm in @INC (you may need to install the File::Slurp module) (@INC contains: /tmp/yaourt-tmp-kol/aur-perl-audio-scan/src/Audio-Scan-0.93/blib/lib /tmp/yaourt-tmp-kol/aur-perl-audio-scan/src/Audio-Scan-0.93/blib/arch /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/share/perl5/vendor_perl/Tree/DAG_Node.pm line 10.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Tree/DAG_Node.pm line 10.
Compilation failed in require at (eval 5) line 2.

mbunkus commented on 2013-08-19 20:16

Thanks. However, I'm not using your patch:

1. Custom variables don't play nice with the AUR web interface[1]. Therefore I don't use them in the packages I maintain.
2. I've re-modeled the build/check/package functions to the way I usually handle them in other Perl AUR packages which also fixes the $srcdir issue.
3. I've added arm to the "arch" array as suggested.

[1] https://wiki.archlinux.org/index.php/Arch_Packaging_Standards#Package_etiquette

fragfutter commented on 2013-08-18 08:18

fix: $srcdir not available in package header.
enhance: allow building on arm
enhance: use variables in source-url



-- perl-audio-scan/PKGBUILD.org 2011-09-21 23:58:05.000000000 +0200
+++ perl-audio-scan/PKGBUILD 2013-08-18 10:16:17.860864391 +0200
@@ -1,43 +1,46 @@
# Contributor: Justin Davis <jrcd83@gmail.com>
# Generator : CPANPLUS::Dist::Arch 1.18

-pkgname='perl-audio-scan'
+_nativename='Audio-Scan'
+_author='AGRUNDMA'
+pkgname="perl-${_nativename,,}"
pkgver='0.93'
pkgrel='1'
pkgdesc="Fast C metadata and tag reader for all common audio file formats"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'arm')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl' 'zlib>=1.2.5')
makedepends=('perl-test-warn')
url='http://search.cpan.org/dist/Audio-Scan'
-source=('http://search.cpan.org/CPAN/authors/id/A/AG/AGRUNDMA/Audio-Scan-0.93.tar.gz')
+source=("http://search.cpan.org/CPAN/authors/id/${_author:0:1}/${_author:0:2}/${_author}/${_nativename}-$pkgver.tar.gz")
md5sums=('afcdbf8641e1a572a387fe097e3897ee')
sha512sums=('1e82f8ff35744a14626777450c87e15d7f0e5ada7f6643c5f9b38a599068cacef50ae83b525292440085de4593ad625abf5ee61282b59f64b1349d5d8f29e99a')
-_distdir="${srcdir}/Audio-Scan-0.93"

build() {
- ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ (
+ export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null

- cd "$_distdir"
+ cd "$_nativename-$pkgver"
/usr/bin/perl Makefile.PL
make
)
}
check() {
- cd "$_distdir"
- ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ cd "$_nativename-$pkgver"
+ (
+ export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}

package() {
- cd "$_distdir"
+ cd "$_nativename-$pkgver"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}