initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- field.c.orig 2008-05-05 09:49:15.000000000 -0400
+++ field.c 2008-05-05 09:49:25.000000000 -0400
@@ -291,7 +291,7 @@
end = *ptr + length;
- while (end - *ptr > 0) {
+ while (end - *ptr > 0 && **ptr != '\0') {
ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);
if (ucs4 == 0)
goto fail;

62
libid3tag/PKGBUILD Normal file
View File

@@ -0,0 +1,62 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=libid3tag
pkgver=0.15.1b
_debver=0.15.1b
_debrel=14
pkgrel=9
pkgdesc="library for id3 tagging"
arch=('i686' 'x86_64')
url="https://www.underbit.com/products/mad/"
license=('GPL-2')
depends=('zlib')
makedepends=('gperf' 'quilt')
source=("https://sourceforge.net/projects/mad/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sign}
"https://deb.debian.org/debian/pool/main/libi/libid3tag/libid3tag_$_debver-$_debrel.debian.tar.xz"
'id3tag.pc'
'10_utf16.diff' '11_unknown_encoding.diff' 'CVE-2008-2109.patch' libid3tag-gperf.patch)
sha512sums=('ade7ce2a43c3646b4c9fdc642095174b9d4938b078b205cd40906d525acd17e87ad76064054a961f391edcba6495441450af2f68be69f116549ca666b069e6d3'
'SKIP'
'e9c84b02c1b4fbd6c26ecce0705e9f90a3c957798bb7753a18592d398fb8d281248a3e25b65abc79bbc9f551bed43fdbcfb64ca7062cdc26b478744d0e0541ea'
'7bbc8680b0c20f518801da02a9de2e84844b7cd8fba9cb6e9f9e7df834589106540aaa80e57963d2534731abad3dfefacd290e0ecb5f309f1dce26b46f519477'
'3a1c6ad1ba82738276d87369eac0dedf08b83322c767e23e1d73571275a92d6a06877a998d508c74345538a75d28fdffc92446fa3dcff9f3bee90de36fa42247'
'8d8ae41a65e1cd343aad2dcf77239144f3c96c433259c3180c403da2d50701687755cb67814b42da04888b2b7e92814705a438de286b548c941493d1cae14531'
'895d6a71540c8a60258e8900479bbce8f3eef67c9b0ff631130862778b3688568c5e363e0ba2a7b55a2e4a9109e22673eda69903e7bcaa77776de876cb09295b'
'2af08ba12f9fd2121529045c1639206feccc9e4471c348cf9ea7ed73d24ba26b4146afaa6ae2ee03cae976655bf42d8a9e61cfc943d0cd6f73a41c4605de89f8')
validpgpkeys=('4229B6BBA00DE143B485B74D2CE2036B4BF38A33') # Rob Leslie
prepare() {
cd $pkgname-$pkgver
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
quilt push -av
else
patch -p1 -i ${srcdir}/10_utf16.diff
patch -p1 -i ${srcdir}/11_unknown_encoding.diff
patch -p1 -i ../libid3tag-gperf.patch # Fedora patch
fi
patch -Np0 -i ${srcdir}/CVE-2008-2109.patch
rm compat.c frametype.c # regenerate them from gperf sources
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 "${srcdir}/id3tag.pc" "${pkgdir}/usr/lib/pkgconfig/id3tag.pc"
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

10
libid3tag/id3tag.pc Normal file
View File

@@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=/usr/bin
libdir=/usr/lib
includedir=/usr/include
Name: ID3TAG
Description: libid3tag - ID3 tag manipulation library
Version: 0.15.0b
Libs: -L${libdir} -lid3tag -lz
Cflags:

View File

@@ -0,0 +1,26 @@
Index: libid3tag-0.15.1b/frametype.h
===================================================================
--- libid3tag-0.15.1b.orig/frametype.h
+++ libid3tag-0.15.1b/frametype.h
@@ -37,6 +37,6 @@ extern struct id3_frametype const id3_fr
extern struct id3_frametype const id3_frametype_obsolete;
struct id3_frametype const *id3_frametype_lookup(register char const *,
- register unsigned int);
+ register size_t);
# endif
Index: libid3tag-0.15.1b/compat.h
===================================================================
--- libid3tag-0.15.1b.orig/compat.h
+++ libid3tag-0.15.1b/compat.h
@@ -34,7 +34,7 @@ struct id3_compat {
};
struct id3_compat const *id3_compat_lookup(register char const *,
- register unsigned int);
+ register size_t);
int id3_compat_fixup(struct id3_tag *);