# Template file for 'libdmtx'
pkgname=libdmtx
version=0.7.8
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Library for reading and writing Data Matrix barcodes"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/dmtx/libdmtx"
distfiles="https://github.com/dmtx/libdmtx/archive/v${version}.tar.gz"
checksum=2394bf1d1d693a5a4ca3cfcc1bb28a4d878bdb831ea9ca8f3d5c995d274bdc39

pre_configure() {
	autoreconf -fi
}

post_install() {
	vlicense LICENSE
}

libdmtx-devel_package() {
	depends="${sourcepkg}-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/share/man
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
