# $Id: PKGBUILD 97563 2013-09-24 12:20:25Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: FJ <joostef@gmail.com>
# Contributor: Sebastien Piccand <sebcactus gmail com>

pkgname=gaupol
pkgver=0.24.1
pkgrel=1
pkgdesc="An editor for text-based subtitles"
arch=('any')
url="http://home.gna.org/gaupol"
license=('GPL')
depends=('python-gobject' 'iso-codes' 'desktop-file-utils'
         'hicolor-icon-theme')
makedepends=('gettext' 'intltool')
optdepends=('python-pyenchant: spell-checking'
            'python-gtkspellcheck: inline spell-checking'
            'python-chardet: character encoding auto-detection'
            'mplayer: subtitle preview'
            'vlc: subtitle preview')
install=gaupol.install
source=(http://download.gna.org/$pkgname/0.24/$pkgname-$pkgver.tar.xz)
sha256sums=('eaaebf32ca286916e92a5f8b8175e431cd1d28cc8bb985a9d3f3dcf9ff7311f3')

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

  python3 setup.py --without-iso-codes install --root="$pkgdir" -O1
}

# vim:set ts=2 sw=2 et:
