# $Id: PKGBUILD 114113 2014-07-01 13:31:30Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Vladimir Chizhov <jagoterr@gmail.com>

pkgname=odt2txt
pkgver=0.4
pkgrel=2
pkgdesc="extracts the text out of OpenDocument Texts"
url="https://github.com/dstosberg/odt2txt/"
license=("GPL2")
arch=('i686' 'x86_64')
depends=('zlib')
makedepends=('git')
source=("$pkgname::git://github.com/dstosberg/odt2txt.git")
md5sums=('SKIP')

build() {
  cd $srcdir/$pkgname
  make
}

package() {
  cd $srcdir/$pkgname
  install -Dm755 odt2txt $pkgdir/usr/bin/odt2txt
  install -Dm644 odt2txt.1 $pkgdir/usr/share/man/man1/odt2txt.1
}
