pkgname: libmad pkgver: '0.15.1b' pkgrel: '3' pkgdesc: 'A high-quality MPEG audio decoder' url: 'https://www.underbit.com/products/mad/' arch: x86_64 depends: [] makedepends: - automake - libtool source: - 'https://downloads.sourceforge.net/sourceforge/mad/${pkgname}-${pkgver}.tar.gz' - 'https://www.linuxfromscratch.org/patches/blfs/svn/libmad-${pkgver}-fixes-1.patch' sha256sums: - SKIP - SKIP build: | cd ${pkgname}-${pkgver} patch -Np1 -i ../libmad-${pkgver}-fixes-1.patch sed "s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac touch NEWS AUTHORS ChangeLog autoreconf -fi ./configure --prefix=/usr --disable-static make make DESTDIR=${PKGDIR} install mkdir -p ${PKGDIR}/usr/lib/pkgconfig cat > ${PKGDIR}/usr/lib/pkgconfig/mad.pc << "EOF" prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: mad Description: MPEG audio decoder Requires: Version: #version# Libs: -L${libdir} -lmad Cflags: -I${includedir} EOF sed -i "s/#version#/${pkgver}/" ${PKGDIR}/usr/lib/pkgconfig/mad.pc # Obsolet lib rm -f ${PKGDIR}/usr/lib/libmad.la package: | true