aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/mp3info/APKBUILD41
-rw-r--r--testing/mp3info/escape_chars.patch (renamed from unmaintained/mp3info/escape_chars.patch)0
-rw-r--r--testing/mp3info/types.patch11
-rw-r--r--unmaintained/mp3info/APKBUILD32
4 files changed, 52 insertions, 32 deletions
diff --git a/testing/mp3info/APKBUILD b/testing/mp3info/APKBUILD
new file mode 100644
index 0000000000..a033ee8360
--- /dev/null
+++ b/testing/mp3info/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
+pkgname=mp3info
+pkgver=0.8.5a
+pkgrel=1
+pkgdesc="An MP3 technical info viewer and ID3 1.x tag editor"
+url="http://www.ibiblio.org/mp3info/"
+arch="all"
+license="GPL"
+depends=
+makedepends="ncurses-dev"
+subpackages=""
+source="ftp://ftp.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-0.8.5a.tgz
+ escape_chars.patch
+ types.patch"
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -p1 -i "$srcdir"/escape_chars.patch || return 1
+ patch -p1 -i "$srcdir"/types.patch || return 1
+
+ make mp3info || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -Dm755 mp3info "$pkgdir"/usr/bin/mp3info
+ install -Dm644 mp3info.1 "$pkgdir"/usr/share/man/man1/mp3info.1
+
+}
+
+md5sums="cb7b619a10a40aaac2113b87bb2b2ea2 mp3info-0.8.5a.tgz
+d0be1068503056b775bf10f05a8497b8 escape_chars.patch
+0ecc00596019ca4530af8eae6f5d4ce3 types.patch"
+sha256sums="0438ac68e9f04947fb14ca5573d27c62454cb9db3a93b7f1d2c226cd3e0b4e10 mp3info-0.8.5a.tgz
+452edfebd1d9a647e89b9d88712b1eaec9f7aa4982eeae5c3c884aa21c283df5 escape_chars.patch
+fa63e57cc3e3ddb0e23ecab99bcce5bb95f18dce83214f307bddbfe3dcd431c2 types.patch"
+sha512sums="30e0ef62deaa090fc115317f6c372f408077dfceed7e05faa6744b8516291e38d21f1742732f6532585f0c3d8c705d8c7026c2bed84c97e1f497d433637affd2 mp3info-0.8.5a.tgz
+e2768cb89514e7cec47552384b5166774037fd188caa6e8ed0f6bd6b3a688e0b747c056eddfe3af4613b3947181d3df2bb68a786c9a764598995b8401c561b25 escape_chars.patch
+52378d1b27cd6ae002c99a93854efbef5166cedd1c078aca071f822bdefb1b1d457ef00d3949e96a27e09d2309d320d7ace2417bb25117762ad4536ac68785fa types.patch"
diff --git a/unmaintained/mp3info/escape_chars.patch b/testing/mp3info/escape_chars.patch
index ec697a2863..ec697a2863 100644
--- a/unmaintained/mp3info/escape_chars.patch
+++ b/testing/mp3info/escape_chars.patch
diff --git a/testing/mp3info/types.patch b/testing/mp3info/types.patch
new file mode 100644
index 0000000000..760ebf708d
--- /dev/null
+++ b/testing/mp3info/types.patch
@@ -0,0 +1,11 @@
+--- ./mp3tech.c.orig
++++ ./mp3tech.c
+@@ -279,7 +279,7 @@
+ }
+
+ int sameConstant(mp3header *h1, mp3header *h2) {
+- if((*(uint*)h1) == (*(uint*)h2)) return 1;
++ if((*(unsigned int*)h1) == (*(unsigned int*)h2)) return 1;
+
+ if((h1->version == h2->version ) &&
+ (h1->layer == h2->layer ) &&
diff --git a/unmaintained/mp3info/APKBUILD b/unmaintained/mp3info/APKBUILD
deleted file mode 100644
index a750fc7e65..0000000000
--- a/unmaintained/mp3info/APKBUILD
+++ /dev/null
@@ -1,32 +0,0 @@
-# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
-pkgname=mp3info
-pkgver=0.8.5a
-pkgrel=0
-pkgdesc="An MP3 technical info viewer and ID3 1.x tag editor"
-url="http://www.ibiblio.org/mp3info/"
-arch="all"
-license="GPL"
-depends=
-makedepends="ncurses-dev"
-subpackages=""
-source="ftp://ftp.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/mp3info-0.8.5a.tgz
-escape_chars.patch"
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- patch -p1 -i "$srcdir"/escape_chars.patch || return 1
-
- make mp3info || return 1
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- install -Dm755 mp3info "$pkgdir"/usr/bin/mp3info
- install -Dm644 mp3info.1 "$pkgdir"/usr/share/man/man1/mp3info.1
-
-}
-
-md5sums="cb7b619a10a40aaac2113b87bb2b2ea2 mp3info-0.8.5a.tgz
-d0be1068503056b775bf10f05a8497b8 escape_chars.patch"