Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
mp3unicode


Commits:
52a545e2 by Antonio Rojas at 2024-01-26T08:10:49+01:00
upgpkg: 1.2.1-6: taglib 2 rebuild

- - - - -


3 changed files:

- + .SRCINFO
- PKGBUILD
- + taglib-2.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,14 @@
+pkgbase = mp3unicode
+       pkgdesc = A command line utility to convert ID3 tags in mp3 files 
between different encodings
+       pkgver = 1.2.1
+       pkgrel = 6
+       url = https://github.com/alonbl/mp3unicode
+       arch = x86_64
+       license = GPL
+       depends = taglib
+       source = 
https://github.com/alonbl/mp3unicode/releases/download/mp3unicode-1.2.1/mp3unicode-1.2.1.tar.bz2
+       source = taglib-2.patch
+       sha256sums = 
375b432ce784407e74fceb055d115bf83b1bd04a83b95256171e1a36e00cfe07
+       sha256sums = 
dbfe1b0be4d4b37f0e48ca5788d16bd65b224e57b97d0a50bf67881df6dd710f
+
+pkgname = mp3unicode


=====================================
PKGBUILD
=====================================
@@ -3,24 +3,30 @@
 
 pkgname=mp3unicode
 pkgver=1.2.1
-pkgrel=5
+pkgrel=6
 pkgdesc="A command line utility to convert ID3 tags in mp3 files between 
different encodings"
 arch=('x86_64')
 url="https://github.com/alonbl/mp3unicode";
 license=('GPL')
 depends=('taglib')
-source=(https://github.com/downloads/alonbl/$pkgname/$pkgname-$pkgver.tar.bz2)
-sha256sums=('375b432ce784407e74fceb055d115bf83b1bd04a83b95256171e1a36e00cfe07')
+source=(https://github.com/alonbl/mp3unicode/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.bz2
+        taglib-2.patch)
+sha256sums=('375b432ce784407e74fceb055d115bf83b1bd04a83b95256171e1a36e00cfe07'
+            'dbfe1b0be4d4b37f0e48ca5788d16bd65b224e57b97d0a50bf67881df6dd710f')
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < taglib-2.patch
+}
 
 build() {
-  cd "${srcdir}"/$pkgname-$pkgver
+  cd $pkgname-$pkgver
 
   ./configure --prefix=/usr --mandir=/usr/share/man
   make
 }
 
 package() {
-  cd "${srcdir}"/$pkgname-$pkgver
+  cd $pkgname-$pkgver
 
   make DESTDIR="${pkgdir}" install
 }


=====================================
taglib-2.patch
=====================================
@@ -0,0 +1,13 @@
+diff --git a/mp3unicode.cpp b/mp3unicode.cpp
+index ca25941..4b1b1b8 100644
+--- a/mp3unicode.cpp
++++ b/mp3unicode.cpp
+@@ -192,7 +192,7 @@ protected:
+       bool
+       heuristicIsUnicode (TagLib::String string) {
+               unsigned u0080 = 0;
+-              for(TagLib::uint i = 0; i < string.size(); i++) {
++              for(uint i = 0; i < string.size(); i++) {
+                       if(string[i] > 255) {
+                               return true;
+                       }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/mp3unicode/-/commit/52a545e207948eeb0a2880ed675569153b4ea403

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/mp3unicode/-/commit/52a545e207948eeb0a2880ed675569153b4ea403
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to