# Template file for 'fig2dev'
pkgname=fig2dev
version=3.2.9
revision=1
build_style=gnu-configure
configure_args="--enable-transfig"
hostmakedepends="ghostscript"
makedepends="libpng-devel libXpm-devel"
short_desc="Export .xfig to various output formats"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="custom:MIT-like"
homepage="http://www.xfig.org/"
distfiles="${SOURCEFORGE_SITE}/mcj/${pkgname}-${version}.tar.xz"
checksum=15e246c8d13cc72de25e08314038ad50ce7d2defa9cf1afc172fd7f5932090b1
replaces="transfig>=0"

post_install() {
	sed '/^$/q' <fig2dev/fig2dev.c >LICENSE
	vlicense LICENSE
}
