1 # Maintainer: Musikolo <musikoloAThotmailDOTcom>
2 # Contributor: Sarah Hay <sarah@archlinux.org>
4 # This package is based on the Arch Linux official faad2 package built by Sarah Hay.
5 # Thanks Sarah! It just builds the whole faad2 package in the same way, but it
6 # includes the --with-xmms switch and put the libmp4.so file in a package.
9 pkgname=xmms-mp4-plugin
12 pkgdesc="AAC/MP4 audio plugin for XMMS (*.mp4, *.m4a, *.aac files)"
13 arch=('i686' 'x86_64')
14 url="http://www.audiocoding.com/"
15 license=('custom:GPL')
16 depends=( 'id3lib' 'faad2=2.7' 'xmms')
17 source=(http://downloads.sourceforge.net/sourceforge/faac/${_srcname}-${pkgver}.tar.bz2)
18 md5sums=('4c332fa23febc0e4648064685a3d4332')
19 sha1sums=('b0e80481d27ae9faf9e46c8c8dfb617a0adb91b5')
22 cd ${srcdir}/${_srcname}-${pkgver}
23 ./configure --prefix=/usr --with-xmms || return 1
24 make CFLAGS="${CFLAGS} -fPIC" || return 1
25 install -D -m644 ${srcdir}/${_srcname}-${pkgver}/plugins/xmms/src/.libs/libmp4.so ${pkgdir}`xmms-config --input-plugin-dir`/libmp4.so || return 1