# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Jason Chu <jason@archlinux.org>
# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
# Contributor: Stephen Caraher <moskvax@gmail.com>

pkgname=libiec61883
pkgver=1.2.0
pkgrel=3
pkgdesc="A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394"
arch=('i686' 'x86_64')
url="http://www.linux1394.org/"
license=('LGPL')
depends=('libraw1394')
options=('!libtool')
source=(http://www.kernel.org/pub/linux/libs/ieee1394/$pkgname-$pkgver.tar.gz)
md5sums=('8af39fff74988073c3ad53fbab147da9')

build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -p0 <$startdir/libiec61883-1.2.0-Makefile.patch
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
#  mkdir -p $startdir/pkg/usr/bin/.libs
#  cp $startdir/src/$pkgname-$pkgver/examples/test-mpeg2 $startdir/pkg/usr/bin || return 1
#  cp $startdir/src/$pkgname-$pkgver/examples/.libs/lt-test-mpeg2 $startdir/pkg/usr/bin/.libs || return 1
}