1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
6 pkgdesc="A high-quality MPEG audio decoder"
8 url="https://www.underbit.com/products/mad/"
11 source=(https://downloads.sourceforge.net/sourceforge/mad/${pkgname}-${pkgver}.tar.gz{,.sign}
12 libmad.patch amd64-64bit.diff frame_length.diff optimize.diff)
13 sha512sums=('2cad30347fb310dc605c46bacd9da117f447a5cabedd8fefdb24ab5de641429e5ec5ce8af7aefa6a75a3f545d3adfa255e3fa0a2d50971f76bc0c4fc0400cc45'
15 'ff815f5aa32aec4230351b258430ca2184c0a44f80845c92b46aedb9942b3cd85c7b3aa575f4f562a5e02f7fadf6f3d6fe06e64d2b65418dbcd10762214695b1'
16 '4fc15af4ef497220ee75e3798fbf504be2495fded7202b202169440a387573a3b3105a278d6e5c2ae10d2351a6f9b61895ccde323787314605519ffa23bb080f'
17 '94bcb95f97ba839ecc12d9610f3b6c867f3d732e567343989086b213108120af02f3ebcd2da92352ea2607b6890433df7576026ee92efc57623ab1a64801fa2b'
18 'bae8ed5860859b3fc0391d24fb4d4dd1bb25ae46b7f2600dd10bf56d0f6a446c982df5748cf19bfa43020155de3bf6638053cb0596db35549db2186f46e09644')
19 validpgpkeys=('4229B6BBA00DE143B485B74D2CE2036B4BF38A33')
22 cd ${pkgname}-${pkgver}
23 patch -p1 -i "${srcdir}/libmad.patch"
24 patch -p1 -i "${srcdir}/amd64-64bit.diff"
25 patch -p1 -i "${srcdir}/frame_length.diff"
26 patch -p1 -i "${srcdir}/optimize.diff"
30 cd ${pkgname}-${pkgver}
31 CFLAGS="$CFLAGS -ftree-vectorize -ftree-vectorizer-verbose=1"
33 ./configure --prefix=/usr
38 cd ${pkgname}-${pkgver}
39 make DESTDIR="${pkgdir}" install