# Template file for 'oxipng'
pkgname=oxipng
version=5.0.1
revision=1
build_style=cargo
short_desc="Multithreaded lossless PNG compression optimizer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/shssoichiro/oxipng"
changelog="https://raw.githubusercontent.com/shssoichiro/oxipng/master/CHANGELOG.md"
distfiles="https://github.com/shssoichiro/oxipng/archive/v${version}.tar.gz"
checksum=aff72d2f627617f3f36d9796e65b83eb34f24d2c94f3a55612ade2df8ab8d946

pre_build() {
	# fixes an indexmap error when cross compiling
	cargo update --package autocfg:1.0.1 --precise 1.1.0
}

post_install() {
	vlicense LICENSE
}
