summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordesbma2018-08-29 20:24:39 +0200
committerdesbma2018-08-29 20:24:39 +0200
commit034b684e0ec8d42c9900d5b178734476f3fdf4c9 (patch)
tree1708624b11c10192b998f8151b58a5ab88ecb012
parent88163bf8478af4af2d6d93c0dd1360b318f7d316 (diff)
downloadaur-034b684e0ec8d42c9900d5b178734476f3fdf4c9.tar.gz
Add id3v2 fix for bpm-tag
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
-rw-r--r--fix-bpm-tag-id3v2.patch11
3 files changed, 21 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 952d7b89b15..56187bfcad9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = bpm-tools
pkgdesc = Tools to calculate tempo of audio tracks, display graphs and tag files with bpm value
pkgver = 0.3
- pkgrel = 1
+ pkgrel = 2
url = http://www.pogo.org.uk/~mark/bpm-tools/
arch = i686
arch = x86_64
@@ -13,8 +13,10 @@ pkgbase = bpm-tools
optdepends = id3v2: MP3 tagging support for bpm-tag
source = http://www.pogo.org.uk/~mark/bpm-tools/releases/bpm-tools-0.3.tar.gz
source = fix-bpm-graph-man.patch
+ source = fix-bpm-tag-id3v2.patch
sha512sums = 7d01bea3689b7ed57063620d71a4a70709d64abddfeddde851da90b4ae585427fd7fcc41b46a3677ef9c6ad7109c58523696cf2f3d4a5c0198727e6428a9fc10
sha512sums = d43fa663366a1e3254bb4d20918d61676971562525945083183af3ebf27551f550efe63e2d79f4f9649e98db8a422552db5c529bdb29865ab3827312d88408bf
+ sha512sums = 0e4f2adaeb3ed306c6df8260e3c6e7a9f566723af9a6d8e96a6fd586db54c88426eb157f7d98e7045e0f8931576bcd3afebe16391199009f4757997a88e0fa05
pkgname = bpm-tools
diff --git a/PKGBUILD b/PKGBUILD
index eabbbe03687..0aa3c804694 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: desbma
+# Contributor: after
pkgname=bpm-tools
pkgver=0.3
-pkgrel=1
+pkgrel=2
pkgdesc="Tools to calculate tempo of audio tracks, display graphs and tag files with bpm value"
arch=('i686' 'x86_64')
url="http://www.pogo.org.uk/~mark/bpm-tools/"
@@ -12,13 +13,16 @@ optdepends=('gnuplot: for bpm-graph usage'
'vorbis-tools: Vorbis tagging support for bpm-tag'
'id3v2: MP3 tagging support for bpm-tag')
source=(http://www.pogo.org.uk/~mark/${pkgname}/releases/${pkgname}-${pkgver}.tar.gz
- 'fix-bpm-graph-man.patch')
+ 'fix-bpm-graph-man.patch'
+ 'fix-bpm-tag-id3v2.patch')
sha512sums=('7d01bea3689b7ed57063620d71a4a70709d64abddfeddde851da90b4ae585427fd7fcc41b46a3677ef9c6ad7109c58523696cf2f3d4a5c0198727e6428a9fc10'
- 'd43fa663366a1e3254bb4d20918d61676971562525945083183af3ebf27551f550efe63e2d79f4f9649e98db8a422552db5c529bdb29865ab3827312d88408bf')
+ 'd43fa663366a1e3254bb4d20918d61676971562525945083183af3ebf27551f550efe63e2d79f4f9649e98db8a422552db5c529bdb29865ab3827312d88408bf'
+ '0e4f2adaeb3ed306c6df8260e3c6e7a9f566723af9a6d8e96a6fd586db54c88426eb157f7d98e7045e0f8931576bcd3afebe16391199009f4757997a88e0fa05')
prepare() {
cd ${pkgname}-${pkgver}
patch -i "${srcdir}/fix-bpm-graph-man.patch" bpm-graph.1
+ patch -i "${srcdir}/fix-bpm-tag-id3v2.patch" bpm-tag
}
build() {
diff --git a/fix-bpm-tag-id3v2.patch b/fix-bpm-tag-id3v2.patch
new file mode 100644
index 00000000000..2225dcb5ff1
--- /dev/null
+++ b/fix-bpm-tag-id3v2.patch
@@ -0,0 +1,11 @@
+--- bpm-tag.orig 2018-08-29 20:14:26.377916126 +0200
++++ bpm-tag 2018-08-29 20:14:54.127095932 +0200
+@@ -88,7 +88,7 @@
+ BPM=`metaflac --show-tag=BPM "$FILE" | sed -e 's/BPM=//'`
+ ;;
+ *.mp3)
+- BPM=`id3v2 -R "$FILE" | sed -n 's/^TBPM.*: \([0-9\.]\+\)/\1/p'`
++ BPM=`id3v2 -l "$FILE" | sed -n 's/^TBPM.*: \([0-9\.]\+\)/\1/p'`
+ ;;
+ *.ogg)
+ BPM=`vorbiscomment "$FILE" | sed -n 's/^BPM=//p'`