# $Id: PKGBUILD,v 1.14 2008/12/07 05:27:24 allan Exp $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Todd Musall <tmusall@comcast.net>

pkgname=mozplugger
pkgver=1.12.0
pkgrel=1
pkgdesc="A Mozilla & Firefox multimedia plugin."
arch=('i686' 'x86_64')
url="http://mozplugger.mozdev.org"
license="GPL"
depends=('libx11')
backup=(etc/mozpluggerrc)
source=(http://$pkgname.mozdev.org/files/$pkgname-$pkgver.tar.gz)
md5sums=('6d4dd7b1c577f625c9d664532389d6db')
install=$pkgname.install

build() {
  cd $srcdir/$pkgname-$pkgver
  make linux || return 1
  install -Dm755 mozplugger.so $pkgdir/usr/lib/mozilla/plugins/mozplugger.so
  install -Dm644 mozpluggerrc $pkgdir/etc/mozpluggerrc
  install -Dm755 mozplugger-helper $pkgdir/usr/bin/mozplugger-helper
  install -Dm755 mozplugger-controller $pkgdir/usr/bin/mozplugger-controller
  install -Dm644 mozplugger.7 $pkgdir/usr/share/man/man7/mozplugger.7
}