63 lines
2.5 KiB
Bash
63 lines
2.5 KiB
Bash
# 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"
|
|
}
|