archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libid3tag / repos / extra-x86_64 / PKGBUILD
blob79777126d245678cf54bc321de790ae0493300bc
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=12
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=(
16   https://sourceforge.net/projects/mad/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
17   id3tag.pc
18   10_utf16.diff
19   11_unknown_encoding.diff
20   CVE-2008-2109.patch
21   libid3tag-gperf.patch
23 sha512sums=('ade7ce2a43c3646b4c9fdc642095174b9d4938b078b205cd40906d525acd17e87ad76064054a961f391edcba6495441450af2f68be69f116549ca666b069e6d3'
24             'f58367ad74a6ec310f757935b57d59beebbd817ee12de9e532e4af31e166d2f1f614eb3f44caa8601dc5102bfde9ddbea4b8b80bbaa1791dcfcb23e1bd2ed1a6'
25             '3a1c6ad1ba82738276d87369eac0dedf08b83322c767e23e1d73571275a92d6a06877a998d508c74345538a75d28fdffc92446fa3dcff9f3bee90de36fa42247'
26             '8d8ae41a65e1cd343aad2dcf77239144f3c96c433259c3180c403da2d50701687755cb67814b42da04888b2b7e92814705a438de286b548c941493d1cae14531'
27             '895d6a71540c8a60258e8900479bbce8f3eef67c9b0ff631130862778b3688568c5e363e0ba2a7b55a2e4a9109e22673eda69903e7bcaa77776de876cb09295b'
28             '2af08ba12f9fd2121529045c1639206feccc9e4471c348cf9ea7ed73d24ba26b4146afaa6ae2ee03cae976655bf42d8a9e61cfc943d0cd6f73a41c4605de89f8')
29 b2sums=('a4e4e66177eae9aaa251c71d605034488fdd9a0a207a41a41f85793ecbb763dd4a4c8f01183eb45a5c8563c4ad120e73b29578fd4c3bb8e467e39c5427b530b5'
30         '2aa8d9624ea218ec4644b5ab32ab3b7a53c03c655ed6ff7441ff9db0e436271e51bbc4e2d864f7f21250e595e5784554c12227015952faeebc5eceea52aa52be'
31         'c26d5d5f1413ef6bbceb99e3b95812f4de10daddb5560b89ee8ea975aaabe8f638e85e312d1ddcd6e7b4ded44ab09f8a120e506fccf6d57a1ffe46162af35955'
32         'bdebddac29867aa9dfe7e2ef3a5cc9b1506e638829cdbd08017d0ba0470ad48d81627596f4f5f461d782b54dba72fb6753f4a4a511300b442ca456bfb6031483'
33         '229a97eb0c9d136a36a629185fde8541727d5fe5f4ecfb93c34fc8e0e70cd1024e0988d3f66f069e952d13040dfa13d1aa8b894b31b2b9dc92384a92d328548a'
34         '09aa4d9fc7d59c2ebfd0859dbba938f5ea7c7f13852c3d41ad65e48af5c6633babaaa60a32ac66347044d7bf295e27a800a45480c1b810ad884b742c78fa17a3')
36 prepare() {
37   cd $pkgname-$pkgver
38   patch -Np1 -i ../10_utf16.diff
39   patch -Np1 -i ../11_unknown_encoding.diff
40   patch -Np0 -i ../CVE-2008-2109.patch
41   patch -Np1 -i ../libid3tag-gperf.patch # Fedora patch
42   rm compat.c frametype.c # regenerate them from gperf sources
44   # adding missing files for autoreconf
45   touch AUTHORS ChangeLog NEWS
46   autoreconf -fiv
49 build() {
50   cd $pkgname-$pkgver
51   ./configure --prefix=/usr
52   make
53   # add pkgconfig file
54   sed -e "s/VERSION/$pkgver/" ../id3tag.pc > id3tag.pc
57 package() {
58   cd $pkgname-$pkgver
59   make DESTDIR="$pkgdir" install
60   install -vDm 644 id3tag.pc -t "$pkgdir/usr/lib/pkgconfig/"
61   install -vDm 644 {CHANGES,CREDITS,README} -t "$pkgdir/usr/share/doc/$pkgname/"