# Maintainer: Natanael Copa pkgname=faad2 pkgver=2.7 pkgrel=7 pkgdesc="ISO AAC audio decoder" url="http://www.audiocoding.com/" arch="all" license="custom:GPL" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends="autoconf automake libtool" source="http://downloads.sourceforge.net/sourceforge/faac/$pkgname-$pkgver.tar.bz2 automake.patch" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" # manfile has bad name mv frontend/faad.man frontend/faad.1 && \ sed -i -e 's:faad\.man:faad.1:' frontend/Makefile.am \ || return 1 sh bootstrap || return 1 ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -m644 common/mp4ff/mp4ff_int_types.h "$pkgdir"/usr/include/mp4ff_int_types.h || return 1 } md5sums="4c332fa23febc0e4648064685a3d4332 faad2-2.7.tar.bz2 28b178eddf06bda888fe048abc65d57f automake.patch" sha256sums="14561b5d6bc457e825bfd3921ae50a6648f377a9396eaf16d4b057b39a3f63b5 faad2-2.7.tar.bz2 e7b9c8231dfd9227b27ff8c1e8a9be678abf73ce4ce0d3ee9333cb19608fdcfd automake.patch" sha512sums="0934aa9b752b5d86879d94156dea02595e2428340d0cf44202ffea369895b21a9aadbb4833a39212c9a79429b409eb108706b1f523bfddd32809b53730d50947 faad2-2.7.tar.bz2 0b66cfa240529a2139b47cb8dc87c4b43a451b906d66ef7d211fb509358b1493ceee13894516c2f552b33eae74640910e97957caa49dade2597ebd9777152a9e automake.patch"