summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d3d7e431164ea555722840d80716c787f61f46c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Musikolo <musikoloAThotmailDOTcom>
# Contributor: Eric BĂ©langer <eric@archlinux.org>
# Contributor: Sarah Hay <sarah@archlinux.org>

# This package is based on the Arch Linux official faad2 package built by Sarah Hay. 
# Thanks Sarah! It just builds the whole faad2 package in the same way, but it 
# includes the --with-xmms switch and put the libmp4.so file in a package.

_srcname=faad2
pkgname=xmms-mp4-plugin
pkgver=2.8.5
pkgrel=1
pkgdesc="ISO AAC audio decoder"
arch=('i686' 'x86_64')
url="http://www.audiocoding.com/"
license=('GPL')
depends=('glibc' 'xmms')
makedepends=('id3lib')
options=('!makeflags')
source=(http://downloads.sourceforge.net/sourceforge/faac/${_srcname}-${pkgver}.tar.gz)
sha256sums=('ba7364ba8ff9256abb8aa4af8736f27d0b7eaab51c14ff828cc86aabff33ec65')

build() {
   cd ${_srcname}-${pkgver}
   ./configure --prefix=/usr --with-xmms
   make CFLAGS="${CFLAGS} -fPIC"
}

package(){
  cd ${srcdir}/${_srcname}-${pkgver}
  install -D -m644  ${srcdir}/${_srcname}-${pkgver}/plugins/xmms/src/.libs/libmp4.so ${pkgdir}`xmms-config --input-plugin-dir`/libmp4.so
}