# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=dot2tex
pkgver=2.8.7
pkgrel=5
pkgdesc="Graphviz to LaTeX converter"
arch=('any')
url="http://www.fauskes.net/code/dot2tex/"
license=('MIT')
depends=('python2-pyparsing' 'graphviz')
source=(http://dot2tex.googlecode.com/files/dot2tex-${pkgver}.tar.gz)
md5sums=('439dd042e8e7129d3d551808b21d19d4')

build() {
	cd ${srcdir}

	# Access fix
	find . -type d -exec chmod 755 {} \;
}

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

	python2 setup.py install --root=${pkgdir}

	# Install custom license file
	install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
