mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
lltag: add metaflac patch (#924)
This commit is contained in:
parent
13b2c601b0
commit
f15f6c5191
2 changed files with 18 additions and 2 deletions
16
srcpkgs/lltag/patches/fix_flac_tracknumber_reading.patch
Normal file
16
srcpkgs/lltag/patches/fix_flac_tracknumber_reading.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
diff --git lib/Lltag/FLAC.pm lib/Lltag/FLAC.pm
|
||||||
|
index 8c0186d..5c571a6 100644
|
||||||
|
--- lib/Lltag/FLAC.pm
|
||||||
|
+++ lib/Lltag/FLAC.pm
|
||||||
|
@@ -23,8 +23,9 @@ sub read_tags {
|
||||||
|
if $status ;
|
||||||
|
@output = map {
|
||||||
|
my $line = $_ ;
|
||||||
|
- $line =~ s/^\s*comment\[\d+\]\s*:\s*(.*)/$1/ ;
|
||||||
|
- $line =~ s/^TRACKNUMBER=/NUMBER=/ ;
|
||||||
|
+ $line =~ s/^\s*comment\[\d+\]\s*:\s*(.*)/$1/i ;
|
||||||
|
+ $line =~ s/^tracknumber=/NUMBER=/i ;
|
||||||
|
+ $line =~ s/^track number=/NUMBER=/i ;
|
||||||
|
$line
|
||||||
|
} ( grep { /comment\[\d+\]/ } @output ) ;
|
||||||
|
return Lltag::Tags::convert_tag_stream_to_values ($self, @output) ;
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'lltag'
|
# Template file for 'lltag'
|
||||||
pkgname=lltag
|
pkgname=lltag
|
||||||
version=0.14.6
|
version=0.14.6
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="lltag-lltag-${version}"
|
wrksrc="lltag-lltag-${version}"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
|
@ -10,7 +10,7 @@ makedepends="${hostmakedepends}"
|
||||||
depends="perl mp3info vorbis-tools flac perl-MP3-Tag"
|
depends="perl mp3info vorbis-tools flac perl-MP3-Tag"
|
||||||
short_desc="Automatic command-line mp3/ogg/flac file tagger and renamer"
|
short_desc="Automatic command-line mp3/ogg/flac file tagger and renamer"
|
||||||
maintainer="eater <=@eater.me>"
|
maintainer="eater <=@eater.me>"
|
||||||
license="GPL-2.0"
|
license="GPL-2.0-or-later"
|
||||||
homepage="http://bgoglin.free.fr/lltag/"
|
homepage="http://bgoglin.free.fr/lltag/"
|
||||||
distfiles="https://github.com/bgoglin/lltag/archive/lltag-${version}.tar.gz"
|
distfiles="https://github.com/bgoglin/lltag/archive/lltag-${version}.tar.gz"
|
||||||
checksum=e24c88866d89f90c11bcf89d9d1b4e8af78f486f1f7454a28210b10b8af17252
|
checksum=e24c88866d89f90c11bcf89d9d1b4e8af78f486f1f7454a28210b10b8af17252
|
||||||
|
|
Loading…
Add table
Reference in a new issue