# Maintainer: Matthias Aßhauer <mha1993@live.de>

pkgname=docx2txt
pkgver=1.4
pkgrel=1
pkgdesc="docx2txt is a perl based command line utility to convert Microsoft Office(Tm) Docx documents to equivalent Text documents"
arch=('i686' 'x86_64')
license=('GPL3+')
url="http://${pkgname}.sourceforge.net/"
source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tgz)
sha256sums=('b297752910a404c1435e703d5aedb4571222bd759fa316c86ad8c8bbe58c6d1b')
depends=('perl' 'unzip')

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make BINDIR=${pkgdir}/usr/bin installbin
  make CONFIGDIR=${pkgdir}/etc installconfig
  mv -f ${pkgdir}/usr/bin/docx2txt.sh ${pkgdir}/usr/bin/docx2txt
}
