upgpkg: sbcl 2.2.9-1
[arch-packages.git] / libid3tag / trunk / PKGBUILD
blobf6633b0c1298ae12de062759dda45dd4cfb1f238
1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Contributor: David Runge <dvzrv@archlinux.org>
3 # Contributor: dorphell <dorphell@archlinux.org>
5 pkgname=libid3tag
6 pkgver=0.15.1b
7 pkgrel=11
8 pkgdesc="ID3 tag manipulation library"
9 arch=('x86_64')
10 url="https://www.underbit.com/products/mad/"
11 license=('GPL2')
12 depends=('glibc' 'zlib')
13 makedepends=('gperf')
14 provides=('libid3tag.so')
15 source=("https://sourceforge.net/projects/mad/files/libid3tag/${pkgver}/${pkgname}-${pkgver}.tar.gz"
16         'id3tag.pc'
17         '10_utf16.diff'
18         '11_unknown_encoding.diff'
19         'CVE-2008-2109.patch'
20         'libid3tag-gperf.patch')
21 sha512sums=('ade7ce2a43c3646b4c9fdc642095174b9d4938b078b205cd40906d525acd17e87ad76064054a961f391edcba6495441450af2f68be69f116549ca666b069e6d3'
22             'f58367ad74a6ec310f757935b57d59beebbd817ee12de9e532e4af31e166d2f1f614eb3f44caa8601dc5102bfde9ddbea4b8b80bbaa1791dcfcb23e1bd2ed1a6'
23             '3a1c6ad1ba82738276d87369eac0dedf08b83322c767e23e1d73571275a92d6a06877a998d508c74345538a75d28fdffc92446fa3dcff9f3bee90de36fa42247'
24             '8d8ae41a65e1cd343aad2dcf77239144f3c96c433259c3180c403da2d50701687755cb67814b42da04888b2b7e92814705a438de286b548c941493d1cae14531'
25             '895d6a71540c8a60258e8900479bbce8f3eef67c9b0ff631130862778b3688568c5e363e0ba2a7b55a2e4a9109e22673eda69903e7bcaa77776de876cb09295b'
26             '2af08ba12f9fd2121529045c1639206feccc9e4471c348cf9ea7ed73d24ba26b4146afaa6ae2ee03cae976655bf42d8a9e61cfc943d0cd6f73a41c4605de89f8')
28 prepare() {
29   cd "$pkgname-$pkgver"
30   patch -Np1 -i ../10_utf16.diff
31   patch -Np1 -i ../11_unknown_encoding.diff
32   patch -Np0 -i ../CVE-2008-2109.patch
33   patch -Np1 -i ../libid3tag-gperf.patch # Fedora patch
34   rm compat.c frametype.c # regenerate them from gperf sources
36   # adding missing files for autoreconf
37   touch AUTHORS ChangeLog NEWS
38   autoreconf -vfi
41 build() {
42   cd "${pkgname}-${pkgver}"
43   ./configure --prefix=/usr
44   make
45   # adding pkgconfig file
46   cp -v ../id3tag.pc .
47   sed -e "s/VERSION/${pkgver}/" -i id3tag.pc
50 package() {
51   cd "${pkgname}-${pkgver}"
52   make DESTDIR="${pkgdir}" install
53   install -vDm 644 id3tag.pc -t "${pkgdir}/usr/lib/pkgconfig/"
54   install -vDm 644 {CHANGES,CREDITS,README} \
55     -t "${pkgdir}/usr/share/doc/${pkgname}"