# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Maintainer: Struan Robertson <contact@struanrobertson.co.uk>
pkgname=dvisvgm
pkgver=3.4.4
pkgrel=0
pkgdesc="A fast DVI, EPS, and PDF to SVG converter"
url="https://github.com/mgieseki/dvisvgm"
# ppc64le: limited by texlive
# riscv64: limited by texlive
# s390x: limited by texlive
# loongarch64: limited by texlive
arch="all !ppc64le !riscv64 !s390x !loongarch64"
license="GPL-3.0-or-later"
makedepends="
	autoconf
	autoconf-archive
	automake
	freetype-dev
	libtool
	python3
	texlive-dev
	woff2-dev
	zlib-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mgieseki/dvisvgm/archive/refs/tags/$pkgver.tar.gz"

prepare() {
	default_prepare

	autoreconf -vif
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c74e062710ade4b27db687d81815356fba4912aac1c6ee7955dbd247bdc2aa1a55a9ea83517213cbed58e73a14f77280ee754eefe84139b1489f1a8ecc4f78bd  dvisvgm-3.4.4.tar.gz
"
