# $Id: PKGBUILD 142780 2011-11-15 05:34:03Z eric $ # Maintainer: Eric BĂ©langer pkgname=xine-lib pkgver=1.1.20 pkgrel=1 pkgdesc="A multimedia playback engine" arch=('i686' 'x86_64') url="http://www.xine-project.org" license=('LGPL' 'GPL') depends=('libxvmc' 'flac' 'ffmpeg' 'libxinerama' 'libmodplug') makedepends=('wavpack' 'faad2' 'libmng' 'imagemagick' 'smbclient' 'mesa' 'v4l-utils' 'vcdimager' 'jack' 'gdk-pixbuf2' 'libpulse' 'speex' 'aalib') optdepends=('imagemagick: for using the imagemagick plugin' \ 'smbclient: for using the smb plugin' \ 'jack: for using the jack plugin' \ 'vcdimager: for using the vcd plugin' \ 'gdk-pixbuf2: for using the gdk-pixbuf plugin' \ 'mesa: for using the opengl plugin' \ 'libpulse: for using the pulseaudio plugin' \ 'speex: for using the speex plugin' \ 'v4l-utils: for using the v4l plugin' \ 'wavpack: for using the wavpack plugin' \ 'faad2: for using the faad plugin' \ 'libmng: for using the mng plugin' \ 'aalib: for using the aalib plugin') options=('!libtool') source=(http://downloads.sourceforge.net/sourceforge/xine/${pkgname}-${pkgver}.tar.xz) sha1sums=('1dbd48e14113739101429391d45f65ebbf6519fc') build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's|linux/videodev.h|libv4l1-videodev.h|' \ configure src/input/input_v4l.c src/video_out/video_out_syncfb.h ./configure --prefix=/usr --with-wavpack --with-external-ffmpeg --with-external-libfaad \ --disable-optimizations make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }