# $Id: PKGBUILD 66076 2012-02-22 22:32:13Z jlichtblau $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=subtitleeditor
pkgver=0.40.0
pkgrel=1
pkgdesc="A GTK+2 tool to edit subtitles for GNU/Linux/*BSD"
arch=('i686' 'x86_64')
url="http://home.gna.org/subtitleeditor/"
license=('GPL3')
depends=('desktop-file-utils' 'enchant' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 
         'gstreamermm' 'gtk2' 'gtkmm' 'hicolor-icon-theme' 'libsigc++' 'libxml++' 'xdg-utils')
makedepends=('intltool')
optdepends=('gstreamer0.10-ffmpeg: to be able to view movies inside the subtitleeditor'
            'gstreamer0.10-ugly-plugins: to be able to view movies inside the subtitleeditor'
            'gstreamer0.10-fluendo: to be able to view movies inside the subtitleeditor')
options=('!libtool')
install=$pkgname.install
changelog=$pkgname.changelog
source=(http://download.gna.org/$pkgname/0.40/$pkgname-$pkgver.tar.gz)
sha256sums=('b8d948f3e770524bf63fe632600aa94fcbd4edba772cad2aec4fdb3b3335b02d')

build() {
  cd ${srcdir}/$pkgname-$pkgver

  ./configure --prefix=/usr
  make
}
package() {
  cd ${srcdir}/$pkgname-$pkgver

}

package () {
  cd ${srcdir}/$pkgname-$pkgver

  make DESTDIR=${pkgdir} install
}
